diff options
Diffstat (limited to 'boost/container/set.hpp')
-rw-r--r-- | boost/container/set.hpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/boost/container/set.hpp b/boost/container/set.hpp index 44bad8c65b..ca6334fed8 100644 --- a/boost/container/set.hpp +++ b/boost/container/set.hpp @@ -1024,13 +1024,11 @@ set(ordered_unique_range_t, InputIterator, InputIterator, Compare const&, Alloca //!has_trivial_destructor_after_move<> == true_type //!specialization for optimizations -template <class Key, class Compare, class Options, class Allocator> +template <class Key, class Compare, class Allocator, class Options> struct has_trivial_destructor_after_move<boost::container::set<Key, Compare, Allocator, Options> > { - typedef typename ::boost::container::allocator_traits<Allocator>::pointer pointer; - static const bool value = ::boost::has_trivial_destructor_after_move<Allocator>::value && - ::boost::has_trivial_destructor_after_move<pointer>::value && - ::boost::has_trivial_destructor_after_move<Compare>::value; + typedef ::boost::container::dtl::tree<Key, void, Compare, Allocator, Options> tree; + static const bool value = ::boost::has_trivial_destructor_after_move<tree>::value; }; namespace container { @@ -1693,10 +1691,8 @@ multiset(ordered_range_t, InputIterator, InputIterator, Compare const&, Allocato template <class Key, class Compare, class Allocator, class Options> struct has_trivial_destructor_after_move<boost::container::multiset<Key, Compare, Allocator, Options> > { - typedef typename ::boost::container::allocator_traits<Allocator>::pointer pointer; - static const bool value = ::boost::has_trivial_destructor_after_move<Allocator>::value && - ::boost::has_trivial_destructor_after_move<pointer>::value && - ::boost::has_trivial_destructor_after_move<Compare>::value; + typedef ::boost::container::dtl::tree<Key, void, Compare, Allocator, Options> tree; + static const bool value = ::boost::has_trivial_destructor_after_move<tree>::value; }; namespace container { |