Fix warnings

This commit is contained in:
Simon Brand
2018-04-11 15:54:58 +01:00
parent 94b7563fdf
commit effc941116
2 changed files with 3 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ TEST_CASE("Noexcept", "[noexcept]") {
struct throw_move_assign {
throw_move_assign() = default;
throw_move_assign(throw_move_assign &&){};
throw_move_assign &operator=(const throw_move_assign &) {}
throw_move_assign &operator=(const throw_move_assign &) { return *this; }
};
using nothrow_opt = tl::optional<nothrow_move_assign>;