summaryrefslogtreecommitdiff
path: root/src/compat/memory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/memory.hpp')
-rw-r--r--src/compat/memory.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/memory.hpp b/src/compat/memory.hpp
index 3a2af96..702951c 100644
--- a/src/compat/memory.hpp
+++ b/src/compat/memory.hpp
@@ -25,6 +25,8 @@
# include <type_traits>
+namespace tmwa
+{
template<class T>
struct is_array_of_unknown_bound
: std::is_same<T, typename std::remove_extent<T>::type[]>
@@ -42,5 +44,6 @@ typename std::enable_if<is_array_of_unknown_bound<T>::value, std::unique_ptr<T,
typedef typename std::remove_extent<T>::type E;
return std::unique_ptr<E[], D>(new E[sz]());
}
+} // namespace tmwa
#endif // TMWA_COMPAT_MEMORY_HPP