mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-11 13:24:04 +00:00
added qualifier to solve ambiguity with std::make_tuple
[SVN r53301]
This commit is contained in:
parent
436ea292c6
commit
45adb9c08a
@ -1,6 +1,6 @@
|
|||||||
/* Boost.MultiIndex test for composite_key.
|
/* Boost.MultiIndex test for composite_key.
|
||||||
*
|
*
|
||||||
* Copyright 2003-2008 Joaquin M Lopez Munoz.
|
* Copyright 2003-2009 Joaquin M Lopez Munoz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
* http://www.boost.org/LICENSE_1_0.txt)
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -637,9 +637,11 @@ void test_composite_key()
|
|||||||
ch4=ch2; /* prevent unused var */
|
ch4=ch2; /* prevent unused var */
|
||||||
|
|
||||||
BOOST_CHECK(
|
BOOST_CHECK(
|
||||||
ch1(ck6(xystr(0,0,"hello")))==ch1(make_tuple(std::string("hello"),0,0)));
|
ch1(ck6(xystr(0,0,"hello")))==
|
||||||
|
ch1(boost::make_tuple(std::string("hello"),0,0)));
|
||||||
BOOST_CHECK(
|
BOOST_CHECK(
|
||||||
ch1(ck6(xystr(4,5,"world")))==ch1(make_tuple(std::string("world"),4,5)));
|
ch1(ck6(xystr(4,5,"world")))==
|
||||||
|
ch1(boost::make_tuple(std::string("world"),4,5)));
|
||||||
|
|
||||||
typedef boost::hash<composite_key_result<ckey_t3> > ckeyres_hash_t;
|
typedef boost::hash<composite_key_result<ckey_t3> > ckeyres_hash_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user