mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 13:34:30 +02:00
Change forward_as_tuple to forward_as_tuple_impl as there are ambiguities when std headers are included. It's is used only in the pair test
This commit is contained in:
@@ -78,7 +78,7 @@ class tuple<Head, Tail...>
|
||||
|
||||
|
||||
template<typename... Values>
|
||||
tuple<Values&&...> forward_as_tuple(Values&&... values)
|
||||
tuple<Values&&...> forward_as_tuple_impl(Values&&... values)
|
||||
{ return tuple<Values&&...>(::boost::forward<Values>(values)...); }
|
||||
|
||||
template<int I, typename Tuple>
|
||||
|
@@ -140,8 +140,8 @@ int main ()
|
||||
typedef dtl::pair<movable_pair_t, movable_pair_t> movable_pair_pair_t;
|
||||
test::movable_int a(1), b(2), c(3), d(4);
|
||||
movable_pair_pair_t p( piecewise_construct
|
||||
, dtl::forward_as_tuple(boost::move(a), boost::move(b))
|
||||
, dtl::forward_as_tuple(boost::move(c), boost::move(d))
|
||||
, dtl::forward_as_tuple_impl(boost::move(a), boost::move(b))
|
||||
, dtl::forward_as_tuple_impl(boost::move(c), boost::move(d))
|
||||
);
|
||||
BOOST_TEST(p.first.first == 1);
|
||||
BOOST_TEST(p.first.second == 2);
|
||||
|
Reference in New Issue
Block a user