1
0
forked from boostorg/core

Copyright and cosmetic fixes.

This commit is contained in:
Peter Dimov
2014-06-10 03:14:33 +03:00
parent dc63ce9ee0
commit a0f5475126
3 changed files with 11 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
// Copyright 2002-2004 David Abrahams and Aleksey Gurtovoy
// Copyright 2014 Agustin Berge
//
// Distributed under the Boost Software License, Version 1.0. (See
@@ -7,15 +6,13 @@
#include <boost/ref.hpp>
# if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
int main()
{
boost::reference_wrapper<int const> r(1); // this should produce an ERROR
return 0;
boost::reference_wrapper<int const> r(1); // this should produce an ERROR
}
# else
# error To fail, this test requires rvalue references
# endif
#else
# error To fail, this test requires rvalue references
#endif

View File

@@ -1,4 +1,3 @@
// Copyright 2002-2004 David Abrahams and Aleksey Gurtovoy
// Copyright 2014 Agustin Berge
//
// Distributed under the Boost Software License, Version 1.0. (See
@@ -9,7 +8,5 @@
int main()
{
boost::reference_wrapper<int> r = boost::ref(2); // this should produce an ERROR
return 0;
boost::reference_wrapper<int> r = boost::ref(2); // this should produce an ERROR
}

View File

@@ -1,4 +1,3 @@
// Copyright 2002-2004 David Abrahams and Aleksey Gurtovoy
// Copyright 2014 Agustin Berge
//
// Distributed under the Boost Software License, Version 1.0. (See
@@ -7,7 +6,7 @@
#include <boost/ref.hpp>
# if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
struct X {};
@@ -15,11 +14,9 @@ X const crv() { return X(); }
int main()
{
boost::reference_wrapper<X const> r = boost::ref(crv()); // this should produce an ERROR
return 0;
boost::reference_wrapper<X const> r = boost::ref(crv()); // this should produce an ERROR
}
# else
# error To fail, this test requires rvalue references
# endif
#else
# error To fail, this test requires rvalue references
#endif