summaryrefslogtreecommitdiff
path: root/boost/container/detail/version_type.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:22:41 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:22:41 +0900
commit3c1df2168531ad5580076ae08d529054689aeedd (patch)
tree941aff6f86393eecacddfec252a8508c7e8351c9 /boost/container/detail/version_type.hpp
parentd6a306e745acfee00e81ccaf3324a2a03516db41 (diff)
downloadboost-3c1df2168531ad5580076ae08d529054689aeedd.tar.gz
boost-3c1df2168531ad5580076ae08d529054689aeedd.tar.bz2
boost-3c1df2168531ad5580076ae08d529054689aeedd.zip
Imported Upstream version 1.70.0upstream/1.70.0
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