Add some ctors for this allocator
authorChris Lattner <sabre@nondot.org>
Fri, 7 Nov 2003 15:20:06 +0000 (15:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Nov 2003 15:20:06 +0000 (15:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9766 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/MallocAllocator.h
include/llvm/Support/MallocAllocator.h

index 98957d4c8e9cb1cd4c385b14d490cc244b7a5cb7..e063f312ab25d80d5a90098943fdd4caf892d90f 100644 (file)
@@ -36,6 +36,10 @@ struct MallocAllocator {
     typedef MallocAllocator<U> other;
   };
 
+  template<typename R>
+  MallocAllocator(const MallocAllocator<R> &) {}
+  MallocAllocator() {}
+
   pointer address(reference x) const { return &x; }
   const_pointer address(const_reference x) const { return &x; }
   size_type max_size() const { return ~0 / sizeof(T); }
index 98957d4c8e9cb1cd4c385b14d490cc244b7a5cb7..e063f312ab25d80d5a90098943fdd4caf892d90f 100644 (file)
@@ -36,6 +36,10 @@ struct MallocAllocator {
     typedef MallocAllocator<U> other;
   };
 
+  template<typename R>
+  MallocAllocator(const MallocAllocator<R> &) {}
+  MallocAllocator() {}
+
   pointer address(reference x) const { return &x; }
   const_pointer address(const_reference x) const { return &x; }
   size_type max_size() const { return ~0 / sizeof(T); }