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
2010-04-21 08:49:21 +00:00
parent 0c1feee19f
commit 4464cf9f47
5 changed files with 20 additions and 5 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
// (C) Copyright Beman Dawes 2008
// Use, modification and distribution are subject to the
@@ -14,7 +15,7 @@ namespace boost_no_char16_t {
int test()
{
char16_t c;
const char16_t* p = u"abc";
return 0;
}
+1 -1
View File
@@ -14,7 +14,7 @@ namespace boost_no_char32_t {
int test()
{
char32_t c;
const char32_t* p = U"abc";
return 0;
}
+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;
}