diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:22:41 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:22:41 +0900 |
commit | 3c1df2168531ad5580076ae08d529054689aeedd (patch) | |
tree | 941aff6f86393eecacddfec252a8508c7e8351c9 /boost/container/detail/version_type.hpp | |
parent | d6a306e745acfee00e81ccaf3324a2a03516db41 (diff) | |
download | boost-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.hpp | 16 |
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 |