summaryrefslogtreecommitdiff
path: root/libs/lexical_cast/test/lexical_cast_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lexical_cast/test/lexical_cast_test.cpp')
-rw-r--r--libs/lexical_cast/test/lexical_cast_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/lexical_cast/test/lexical_cast_test.cpp b/libs/lexical_cast/test/lexical_cast_test.cpp
index f27e6df07..5058b5123 100644
--- a/libs/lexical_cast/test/lexical_cast_test.cpp
+++ b/libs/lexical_cast/test/lexical_cast_test.cpp
@@ -56,6 +56,12 @@ struct my_traits : std::char_traits<CharT>
template<class CharT>
struct my_allocator : std::allocator<CharT>
{
+ typedef std::allocator<CharT> base_t;
+
+ my_allocator(){}
+ template <class U> my_allocator(const my_allocator<U>& v) : base_t(v) {}
+
+ template <class U> struct rebind { typedef my_allocator<U> other; };
};
using namespace boost;