mirror of
https://github.com/boostorg/core.git
synced 2025-08-13 19:54:28 +02:00
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
|
// Copyright 2014 Agustin Berge
|
||||||
//
|
//
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
@@ -7,15 +6,13 @@
|
|||||||
|
|
||||||
#include <boost/ref.hpp>
|
#include <boost/ref.hpp>
|
||||||
|
|
||||||
# if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<int const> r(1); // this should produce an ERROR
|
boost::reference_wrapper<int const> r(1); // this should produce an ERROR
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# else
|
#else
|
||||||
# error To fail, this test requires rvalue references
|
# 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
|
// Copyright 2014 Agustin Berge
|
||||||
//
|
//
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
@@ -9,7 +8,5 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<int> r = boost::ref(2); // this should produce an ERROR
|
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
|
// Copyright 2014 Agustin Berge
|
||||||
//
|
//
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
@@ -7,7 +6,7 @@
|
|||||||
|
|
||||||
#include <boost/ref.hpp>
|
#include <boost/ref.hpp>
|
||||||
|
|
||||||
# if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
|
|
||||||
struct X {};
|
struct X {};
|
||||||
|
|
||||||
@@ -15,11 +14,9 @@ X const crv() { return X(); }
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::reference_wrapper<X const> r = boost::ref(crv()); // this should produce an ERROR
|
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
|
# error To fail, this test requires rvalue references
|
||||||
# endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user