|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61449 - trunk/libs/foreach/test
From: dgregor_at_[hidden]
Date: 2010-04-21 02:33:53
Author: dgregor
Date: 2010-04-21 02:33:52 EDT (Wed, 21 Apr 2010)
New Revision: 61449
URL: http://svn.boost.org/trac/boost/changeset/61449
Log:
Default-initialized const objects of class type are ill-formed of the class does not have a user-declared default constructor
Text files modified:
trunk/libs/foreach/test/noncopyable.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: trunk/libs/foreach/test/noncopyable.cpp
==============================================================================
--- trunk/libs/foreach/test/noncopyable.cpp (original)
+++ trunk/libs/foreach/test/noncopyable.cpp 2010-04-21 02:33:52 EDT (Wed, 21 Apr 2010)
@@ -19,12 +19,14 @@
: std::vector<int>
, private boost::noncopyable
{
+ noncopy_vector() { }
};
struct noncopy_range
: boost::iterator_range<noncopy_vector::iterator>
, private boost::noncopyable
{
+ noncopy_range() { }
};
// Tell FOREACH that noncopy_vector and noncopy_range are non-copyable.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk