diff options
Diffstat (limited to 'boost/container/detail/pair.hpp')
-rw-r--r-- | boost/container/detail/pair.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/container/detail/pair.hpp b/boost/container/detail/pair.hpp index 17766f35cb..134760e1e6 100644 --- a/boost/container/detail/pair.hpp +++ b/boost/container/detail/pair.hpp @@ -317,6 +317,16 @@ struct is_class_or_union< ::boost::container::container_detail::pair<T1, T2> > static const bool value = true; }; +template <class T1, class T2> +struct is_class_or_union< std::pair<T1, T2> > +//This specialization is needed to avoid instantiation of pair in +//is_class, and allow recursive maps. +{ + static const bool value = true; +}; + + + } //namespace move_detail{ |