forked from qt-creator/qt-creator
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user