From f8bef7ba9557bba53b5f03e1ab6e72dd82ffa3f8 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sat, 3 Oct 2009 09:08:10 +0000 Subject: [PATCH] Merged value_init_test from trunk, inc. [51356], anticipating the fix of ticket #2548, which will remove implicit conversion from const value_initialized to non-const T&. [SVN r56543] --- value_init_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/value_init_test.cpp b/value_init_test.cpp index 63f324d..67ebad8 100644 --- a/value_init_test.cpp +++ b/value_init_test.cpp @@ -260,7 +260,7 @@ bool test ( T const& y, T const& z ) boost::value_initialized const x_c ; BOOST_CHECK ( y == x_c ) ; BOOST_CHECK ( y == boost::get(x_c) ) ; - T& x_c_ref = x_c ; + T& x_c_ref = const_cast( boost::get(x_c) ) ; x_c_ref = z ; BOOST_CHECK ( x_c == z ) ;