Utils: Test if vector::operator=(&&) is not throwing exceptions

It is advantageous to mark move assignments noexcept. Some implementations
are already implementing it and with C++ 17 it will be standard. So we take
advantage of it and make it conditionally.

Change-Id: I7c6d77d09a02639096ce0fb43733c1fbf190c7c4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marco Bubke
2017-01-24 13:21:05 +01:00
parent 4ab6d1fa9d
commit 03a68a91bb

View File

@@ -76,7 +76,8 @@ public:
BasicSmallStringVector &operator=(const BasicSmallStringVector &) = default;
BasicSmallStringVector(BasicSmallStringVector &&) noexcept = default;
BasicSmallStringVector &operator=(BasicSmallStringVector &&) = default;
BasicSmallStringVector &operator=(BasicSmallStringVector &&)
noexcept(std::is_nothrow_move_assignable<Base>::value) = default;
SmallString join(SmallString &&separator) const
{