15
15
#include < boost/container/detail/config_begin.hpp>
16
16
#include < boost/container/detail/workaround.hpp>
17
17
#include < boost/container/detail/mpl.hpp>
18
+ #include < boost/container/detail/is_pair.hpp>
18
19
#include < boost/move/utility_core.hpp>
19
20
#include < boost/container/detail/type_traits.hpp>
20
21
#include < boost/move/detail/launder.hpp> // adl_move_swap
@@ -101,7 +102,8 @@ enum EmplaceOptions{
101
102
};
102
103
103
104
template <class Container >
104
- bool test_expected_container (const Container &ec, const EmplaceInt *Expected, unsigned int only_first_n, unsigned int cont_offset = 0 )
105
+ typename boost::container::dtl::enable_if_c< !boost::container::dtl::is_pair<typename Container::value_type>::value, bool >::type
106
+ test_expected_container (const Container &ec, const EmplaceInt *Expected, unsigned int only_first_n, unsigned int cont_offset = 0 )
105
107
{
106
108
typedef typename Container::const_iterator const_iterator;
107
109
const_iterator itb (ec.begin ()), ite (ec.end ());
@@ -125,7 +127,8 @@ bool test_expected_container(const Container &ec, const EmplaceInt *Expected, un
125
127
}
126
128
127
129
template <class Container >
128
- bool test_expected_container (const Container &ec, const std::pair<EmplaceInt, EmplaceInt> *Expected, unsigned int only_first_n)
130
+ typename boost::container::dtl::enable_if_c<boost::container::dtl::is_pair<typename Container::value_type>::value, bool >::type
131
+ test_expected_container (const Container &ec, const std::pair<EmplaceInt, EmplaceInt> *Expected, unsigned int only_first_n)
129
132
{
130
133
typedef typename Container::const_iterator const_iterator;
131
134
const_iterator itb (ec.begin ()), ite (ec.end ());
0 commit comments