mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
More cosmetic fixes in ref tests.
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
//
|
||||
// Test that a const rvalue can't be passed to ref()
|
||||
//
|
||||
// Copyright 2014 Agustin Berge
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0. (See
|
||||
// accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include <boost/ref.hpp>
|
||||
|
||||
@@ -14,7 +18,7 @@ X const crv() { return X(); }
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user