From a0f547512613f27507bfa531447358b15d2ce735 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 10 Jun 2014 03:14:33 +0300 Subject: [PATCH] Copyright and cosmetic fixes. --- test/ref_rv_fail1.cpp | 13 +++++-------- test/ref_rv_fail2.cpp | 5 +---- test/ref_rv_fail3.cpp | 13 +++++-------- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/test/ref_rv_fail1.cpp b/test/ref_rv_fail1.cpp index 6e6f706..9924626 100644 --- a/test/ref_rv_fail1.cpp +++ b/test/ref_rv_fail1.cpp @@ -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 -# if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) +#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) int main() { - boost::reference_wrapper r(1); // this should produce an ERROR - - return 0; + boost::reference_wrapper 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 diff --git a/test/ref_rv_fail2.cpp b/test/ref_rv_fail2.cpp index 1ca8222..2893c21 100644 --- a/test/ref_rv_fail2.cpp +++ b/test/ref_rv_fail2.cpp @@ -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 r = boost::ref(2); // this should produce an ERROR - - return 0; + boost::reference_wrapper r = boost::ref(2); // this should produce an ERROR } diff --git a/test/ref_rv_fail3.cpp b/test/ref_rv_fail3.cpp index d93cb4e..f6f64e8 100644 --- a/test/ref_rv_fail3.cpp +++ b/test/ref_rv_fail3.cpp @@ -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 -# 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 r = boost::ref(crv()); // this should produce an ERROR - - return 0; + boost::reference_wrapper 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