Files

28 lines
553 B
C++
Raw Permalink Normal View History

2007-11-07 16:08:09 +00:00
// Copyright 2002, Fernando Luis Cacciola Carballal.
2004-09-02 13:19:50 +00:00
//
// 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)
//
// Test program for "boost/utility/value_init.hpp"
//
// Initial: 21 Agu 2002
#include <iostream>
#include <string>
#include "boost/utility/value_init.hpp"
#ifdef BOOST_BORLANDC
2004-09-02 13:19:50 +00:00
#pragma hdrstop
#endif
int main()
2004-09-02 13:19:50 +00:00
{
boost::value_initialized<int const> const cx_c ;
get(cx_c) = 1234 ; // this should produce an ERROR
return 0;
}