[libcxx] r284006 - Correctly grant rebound limited_allocators friendship.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 04:35:37 PDT 2016


Author: ericwf
Date: Wed Oct 12 06:35:37 2016
New Revision: 284006

URL: http://llvm.org/viewvc/llvm-project?rev=284006&view=rev
Log:
Correctly grant rebound limited_allocators friendship.

Modified:
    libcxx/trunk/test/support/test_allocator.h

Modified: libcxx/trunk/test/support/test_allocator.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/test_allocator.h?rev=284006&r1=284005&r2=284006&view=diff
==============================================================================
--- libcxx/trunk/test/support/test_allocator.h (original)
+++ libcxx/trunk/test/support/test_allocator.h Wed Oct 12 06:35:37 2016
@@ -332,6 +332,7 @@ struct limited_alloc_handle {
 template <class T, std::size_t N>
 class limited_allocator
 {
+    template <class U, std::size_t UN> friend class limited_allocator;
     typedef limited_alloc_handle<N> BuffT;
     std::shared_ptr<BuffT> handle_;
 public:




More information about the cfe-commits mailing list