diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp
index c751d3c5..f817897c 100644
--- a/test/src/unit-allocator.cpp
+++ b/test/src/unit-allocator.cpp
@@ -240,7 +240,7 @@ namespace
 template<class T>
 struct allocator_no_forward
 {
-    typedef std::remove_const_t<T> value_type;
+    typedef T value_type;
     template <typename U>
     struct rebind
     {