[libcxx] r228840 - Need to wrap a bit in an ifdef, since there are no initializer_lists in C++03

Marshall Clow mclow.lists at gmail.com
Wed Feb 11 07:48:22 PST 2015


Author: marshall
Date: Wed Feb 11 09:48:21 2015
New Revision: 228840

URL: http://llvm.org/viewvc/llvm-project?rev=228840&view=rev
Log:
Need to wrap a bit in an ifdef, since there are no initializer_lists in C++03

Modified:
    libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp

Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp?rev=228840&r1=228839&r2=228840&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp Wed Feb 11 09:48:21 2015
@@ -23,6 +23,7 @@
 
 bool all_equal(int a, int b) { return false; } // everything is equal
 
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
 void test_all_equal(std::initializer_list<int> il)
 {
     binary_counting_predicate<bool(*)(int, int), int, int> pred (all_equal);
@@ -32,6 +33,7 @@ void test_all_equal(std::initializer_lis
     assert(p.second == *--ptr);
     assert(pred.count() <= ((3 * il.size()) / 2));
 }
+#endif
 
 int main()
 {





More information about the cfe-commits mailing list