mirror of
https://github.com/boostorg/config.git
synced 2026-05-05 12:24:13 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace boost_no_char32_t {
|
||||
|
||||
int test()
|
||||
{
|
||||
char32_t c;
|
||||
const char32_t* p = U"abc";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user