forked from boostorg/core
Copyright and cosmetic fixes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
# else
|
||||
#else
|
||||
# error To fail, this test requires rvalue references
|
||||
# endif
|
||||
#endif
|
||||
|
@@ -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
|
||||
@@ -10,6 +9,4 @@
|
||||
int main()
|
||||
{
|
||||
boost::reference_wrapper<int> r = boost::ref(2); // this should produce an ERROR
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -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 {};
|
||||
|
||||
@@ -16,10 +15,8 @@ X const crv() { return X(); }
|
||||
int main()
|
||||
{
|
||||
boost::reference_wrapper<X const> r = boost::ref(crv()); // this should produce an ERROR
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
# else
|
||||
#else
|
||||
# error To fail, this test requires rvalue references
|
||||
# endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user