]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/assign/test/list_of.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / assign / test / list_of.cpp
index 4ed6c9c3a9f3fe2648a279dc53b14671aeaa0dff..b5bc0ed0987b202ff2d174334ce3b4ffb81144e3 100644 (file)
@@ -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. 
 //