Fixed #2272: Compilation failure with C++20 (#2297)

* Suppressed warning for comma-in-indexing-operator in tests that check
  that specific behaviour.
* Made deprecated (and removed) allocator usings conditional on the tests
  being compiled with old version of MSVC that still requires them.

Fixes #2272
This commit is contained in:
Alecto Irene Perez authored and GitHub committed 2021-10-04 21:11:03 +02:00
1 parent 3d01f3ae32
commit dba29b60d6
2 files changed
+19 -2

No files matched your search

@@ -242,12 +242,14 @@ namespace { namespace MatchersTests {
~CustomAllocator() = default;
#if defined(_MSC_VER) && _MSVC_LANG < 201703L
using std::allocator<T>::address;
using std::allocator<T>::allocate;
using std::allocator<T>::construct;
using std::allocator<T>::deallocate;
using std::allocator<T>::max_size;
using std::allocator<T>::destroy;
#endif
using std::allocator<T>::allocate;
using std::allocator<T>::deallocate;
};
TEST_CASE("Vector matchers", "[matchers][vector]") {