STL_MSFT updated this revision to Diff 60736.
STL_MSFT added a comment.
Inspect TEST_STD_VER and cast to void* as requested. I used a static_cast to
avoid triggering any old-style cast warnings.
(I also just noticed that I deleted an empty line, but was too lazy to
regenerate the diff. Oops.)
EricWF added inline comments.
Comment at: test/support/test_allocator.h:83
@@ -82,2 +82,3 @@
{return UINT_MAX / sizeof(T);}
+#ifdef _LIBCPP_HAS_NO_RVALUE_REFERENCES
void construct(pointer p, const T& val)
`#if TEST_STD_VER < 11`
STL_MSFT created this revision.
STL_MSFT added reviewers: mclow.lists, EricWF.
STL_MSFT added a subscriber: cfe-commits.
In test/support/test_allocator.h, fix construct() to avoid moving immovable
types.
This improves the allocator's conformance, and fixes compiler errors with
MSVC's STL. The