Skip to content

Commit

Permalink
Update deduction guides
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 10, 2024
1 parent 2f7e2f1 commit 0ac2530
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions test/sources/libcxx/multiset/multiset.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int main(int, char **) {
}
#endif

#if !defined(TEST_GCC)
{
momo::stdish::multiset s{ 1, 2, 1, INT_MAX, 3 };

Expand All @@ -112,7 +111,6 @@ int main(int, char **) {
assert(std::equal(s.begin(), s.end(), std::begin(expected_s),
std::end(expected_s)));
}
#endif

{
momo::stdish::multiset s({ 1, 2, 1, INT_MAX, 3 }, std::greater<int>());
Expand Down Expand Up @@ -159,7 +157,6 @@ int main(int, char **) {
assert(s.get_allocator().get_id() == 45);
}

#if !defined(TEST_GCC)
{
NotAnAllocator a;
momo::stdish::multiset s{ a }; // multiset(initializer_list<NotAnAllocator>)
Expand All @@ -180,7 +177,6 @@ int main(int, char **) {
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<NotAnAllocator>);
assert(s.size() == 2);
}
#endif

{
int source[3] = { 3, 4, 5 };
Expand All @@ -189,14 +185,12 @@ int main(int, char **) {
assert(s.size() == 3);
}

#if !defined(TEST_GCC)
{
int source[3] = { 3, 4, 5 };
momo::stdish::multiset s{ source, source + 3 }; // multiset(initializer_list<int*>)
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<int *>);
assert(s.size() == 2);
}
#endif

#if TEST_STD_VER >= 23
{
Expand Down Expand Up @@ -227,10 +221,8 @@ int main(int, char **) {
}
#endif

#if MOMO_VERSION_MAJOR > 3
//AssociativeContainerDeductionGuidesSfinaeAway<std::multiset, std::multiset<int>>();
AssociativeContainerDeductionGuidesSfinaeAway<momo::stdish::multiset, momo::stdish::multiset<int>>();
#endif

return 0;
}
6 changes: 0 additions & 6 deletions test/sources/libcxx11/multiset/multiset.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ void main() {
}
#endif

#if !defined(TEST_GCC)
{
momo::stdish::multiset s{ 1, 2, 1, INT_MAX, 3 };

Expand All @@ -113,7 +112,6 @@ void main() {
assert(std::equal(s.begin(), s.end(), std::begin(expected_s),
std::end(expected_s)));
}
#endif

{
momo::stdish::multiset s({ 1, 2, 1, INT_MAX, 3 }, std::greater<int>());
Expand Down Expand Up @@ -160,7 +158,6 @@ void main() {
assert(s.get_allocator().get_id() == 45);
}

#if !defined(TEST_GCC)
{
NotAnAllocator a;
momo::stdish::multiset s{ a }; // multiset(initializer_list<NotAnAllocator>)
Expand All @@ -181,7 +178,6 @@ void main() {
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<NotAnAllocator>);
assert(s.size() == 2);
}
#endif

{
int source[3] = { 3, 4, 5 };
Expand All @@ -190,12 +186,10 @@ void main() {
assert(s.size() == 3);
}

#if !defined(TEST_GCC)
{
int source[3] = { 3, 4, 5 };
momo::stdish::multiset s{ source, source + 3 }; // multiset(initializer_list<int*>)
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<int *>);
assert(s.size() == 2);
}
#endif
}

0 comments on commit 0ac2530

Please sign in to comment.