|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48934 - trunk/libs/config/test
From: daniel_james_at_[hidden]
Date: 2008-09-23 19:22:56
Author: danieljames
Date: 2008-09-23 19:22:56 EDT (Tue, 23 Sep 2008)
New Revision: 48934
URL: http://svn.boost.org/trac/boost/changeset/48934
Log:
The test case for BOOST_NO_INITIALIZER_LISTS, I'll run generate tomorrow.
Added:
trunk/libs/config/test/boost_no_initializer_lists.ipp (contents, props changed)
Added: trunk/libs/config/test/boost_no_initializer_lists.ipp
==============================================================================
--- (empty file)
+++ trunk/libs/config/test/boost_no_initializer_lists.ipp 2008-09-23 19:22:56 EDT (Tue, 23 Sep 2008)
@@ -0,0 +1,23 @@
+// (C) Copyright Daniel James 2008.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/config for most recent version.
+
+
+// MACRO: BOOST_NO_INITIALIZER_LISTS
+// TITLE: Initializer Lists
+// DESCRIPTION: If the compiler does not support C++0x initializer lists
+
+#include <initializer_list>
+
+namespace boost_no_initializer_lists {
+
+int test()
+{
+ std::initializer_list<int> x = { 1, 2 };
+ return 0;
+}
+
+}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk