X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fassign%2Ftest%2Flist_of.cpp;h=b5bc0ed0987b202ff2d174334ce3b4ffb81144e3;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=4ed6c9c3a9f3fe2648a279dc53b14671aeaa0dff;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/libs/assign/test/list_of.cpp b/ceph/src/boost/libs/assign/test/list_of.cpp index 4ed6c9c3a..b5bc0ed09 100644 --- a/ceph/src/boost/libs/assign/test/list_of.cpp +++ b/ceph/src/boost/libs/assign/test/list_of.cpp @@ -109,6 +109,14 @@ void test_sequence_list_of_int() BOOST_CHECK_EQUAL( c3.size(), 13u ); #endif +#if !defined( BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS ) + C c4; + c4 = ba::list_of(1)(2)(3)(4); + BOOST_CHECK_EQUAL( c4.size(), 4u ); + C c5(ba::list_of(1)(2)(3)(4)(5)); + BOOST_CHECK_EQUAL( c5.size(), 5u ); +#endif + #endif parameter_list p( ba::list_of(1)(2), 3u ); @@ -210,7 +218,7 @@ void test_list_of() { ba::list_of< five >(1,2,3,4,5)(6,7,8,9,10); -/* Maybe this could be usefull in a later version? +/* Maybe this could be useful in a later version? // an anonymous lists, fulfills Range concept for_each( ba::list_of( T() )( T() )( T() ) ); @@ -226,7 +234,7 @@ void test_list_of() } // -// @remark: ADL is required here, but it is a bit wierd to +// @remark: ADL is required here, but it is a bit weird to // open up namespace std. Perhaps Boost.Test needs a // better configuration option. //