is_assignable_test: Fixed copy-paste error

The test `is_assignable<noexcept_assignable&>` checks self-assignability, while the
operator was defined for other type, so it was testing the non-noexcept implicit
generated copy assignment operator instead.
This commit is contained in:
Nikita Kniazev authored and GitHub committed 2019-02-19 19:11:03 +03:00
1 parent 5e7844bea1
commit e1f882b25d
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ struct non_assignable
struct noexcept_assignable
{
noexcept_assignable();
noexcept_assignable& operator=(const non_assignable&)noexcept;
noexcept_assignable& operator=(const noexcept_assignable&)noexcept;
};
#endif