Update some of the C++0x tests so they don't catch "fake" implementations.

Update config for VC10 accordingly.
Normalise use of BOOST_HAS_RVALUE_REFS - fixes #4112.

[SVN r61453]
This commit is contained in:
John Maddock committed 2010-04-21 08:49:21 +00:00
1 parent 0c1feee19f
commit 4464cf9f47
5 files changed
+20 -5

No files matched your search

+7
View File
@@ -11,11 +11,18 @@
// DESCRIPTION: If the compiler does not support C++0x initializer lists
#include <initializer_list>
#include <vector>
namespace boost_no_initializer_lists {
void f(std::initializer_list<int>)
{
}
int test()
{
std::vector<std::string> v{"once", "upon", "a", "time"}; // See C++ std 8.5.4
f( { 1, 2, 3, 4 } );
std::initializer_list<int> x = { 1, 2 };
return 0;
}