[PATCH] D22016: [libcxx] [test] Fix a non-Standard allocator in vector.cons/construct_iter_iter_alloc.pass.cpp.
Stephan T. Lavavej via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 5 13:50:58 PDT 2016
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
Fix a non-Standard allocator in vector.cons/construct_iter_iter_alloc.pass.cpp.
You gotta have a rebinding constructor. MSVC loves rebinding.
http://reviews.llvm.org/D22016
Files:
test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
Index: test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
===================================================================
--- test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
+++ test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
@@ -40,6 +40,9 @@
{
implicit_conv_allocator(void*) {}
implicit_conv_allocator(const implicit_conv_allocator&) = default;
+
+ template <class U>
+ implicit_conv_allocator(implicit_conv_allocator<U>) {}
};
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22016.62787.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160705/5d06c533/attachment.bin>
More information about the cfe-commits
mailing list