Skip to content

Commit

Permalink
Quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristeigabriel committed Dec 19, 2021
1 parent b8c7cae commit 10235a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stl/inc/set
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class set : public _Tree<_Tset_traits<_Kty, _Pr, _Alloc, false>> {
public:
static_assert(!_ENFORCE_MATCHING_ALLOCATORS || is_same_v<_Kty, typename _Alloc::value_type>,
_MISMATCHED_ALLOCATOR_MESSAGE("set<T, Compare, Allocator>", "T"));
static_assert(!is_reference_v<_Ty>, "The C++ Standard forbids containers of reference elements "
static_assert(!is_reference_v<_Kty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");

using _Mybase = _Tree<_Tset_traits<_Kty, _Pr, _Alloc, false>>;
Expand Down
8 changes: 4 additions & 4 deletions stl/inc/unordered_set
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class unordered_set : public _Hash<_Uset_traits<_Kty, _Uhash_compare<_Kty, _Hash
public:
static_assert(!_ENFORCE_MATCHING_ALLOCATORS || is_same_v<_Kty, typename _Alloc::value_type>,
_MISMATCHED_ALLOCATOR_MESSAGE("unordered_set<T, Hasher, Eq, Allocator>", "T"));
static_assert(!is_reference_v<_Ty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");
static_assert(!is_reference_v<_Kty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");

private:
using _Mytraits = _Uhash_compare<_Kty, _Hasher, _Keyeq>;
Expand Down Expand Up @@ -336,8 +336,8 @@ class unordered_multiset : public _Hash<_Uset_traits<_Kty, _Uhash_compare<_Kty,
public:
static_assert(!_ENFORCE_MATCHING_ALLOCATORS || is_same_v<_Kty, typename _Alloc::value_type>,
_MISMATCHED_ALLOCATOR_MESSAGE("unordered_multiset<T, Hasher, Eq, Allocator>", "T"));
static_assert(!is_reference_v<_Ty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");
static_assert(!is_reference_v<_Kty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");

private:
using _Mytraits = _Uhash_compare<_Kty, _Hasher, _Keyeq>;
Expand Down
4 changes: 2 additions & 2 deletions stl/inc/xmemory
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,8 @@ class allocator {
public:
static_assert(!is_const_v<_Ty>, "The C++ Standard forbids containers of const elements "
"because allocator<const T> is ill-formed.");
static_assert(!is_reference_v<_Ty>, "The C++ Standard forbids containers of reference elements "
"because of [container.requirements].");
static_assert(!is_reference_v<_Ty>, "The C++ Standard forbids allocators for reference elements "
"because of [allocator.requirements].");

using _From_primary = allocator;

Expand Down

0 comments on commit 10235a4

Please sign in to comment.