mirror of
https://github.com/boostorg/type_traits.git
synced 2025-07-29 20:17:21 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user