summaryrefslogtreecommitdiff
path: root/boost/type_erasure/detail/storage.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/type_erasure/detail/storage.hpp')
-rw-r--r--boost/type_erasure/detail/storage.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/type_erasure/detail/storage.hpp b/boost/type_erasure/detail/storage.hpp
index 658a9fedca..8f8bf865ea 100644
--- a/boost/type_erasure/detail/storage.hpp
+++ b/boost/type_erasure/detail/storage.hpp
@@ -37,11 +37,11 @@ struct storage
storage(storage&& other) : data(other.data) {}
storage& operator=(const storage& other) { data = other.data; return *this; }
template<class T>
- storage(T&& arg) : data(new typename remove_cv<
+ explicit storage(T&& arg) : data(new typename remove_cv<
typename remove_reference<T>::type>::type(std::forward<T>(arg))) {}
#else
template<class T>
- storage(const T& arg) : data(new T(arg)) {}
+ explicit storage(const T& arg) : data(new T(arg)) {}
#endif
void* data;
};