summaryrefslogtreecommitdiff
path: root/boost/container/detail/version_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/container/detail/version_type.hpp')
-rw-r--r--boost/container/detail/version_type.hpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/boost/container/detail/version_type.hpp b/boost/container/detail/version_type.hpp
index c2531ccc31..58e9da6aae 100644
--- a/boost/container/detail/version_type.hpp
+++ b/boost/container/detail/version_type.hpp
@@ -39,24 +39,14 @@ struct version_type
: public dtl::integral_constant<unsigned, V>
{
typedef T type;
-
- version_type(const version_type<T, 0>&);
};
namespace impl{
-template <class T,
- bool = dtl::is_convertible<version_type<T, 0>, typename T::version>::value>
-struct extract_version
-{
- static const unsigned value = 1;
-};
-
template <class T>
-struct extract_version<T, true>
-{
- static const unsigned value = T::version::value;
-};
+struct extract_version
+ : T::version
+{};
template <class T>
struct has_version