|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69363 - sandbox/enums/libs/enums/test
From: vicente.botet_at_[hidden]
Date: 2011-02-27 19:34:18
Author: viboes
Date: 2011-02-27 19:34:17 EST (Sun, 27 Feb 2011)
New Revision: 69363
URL: http://svn.boost.org/trac/boost/changeset/69363
Log:
add
Text files modified:
sandbox/enums/libs/enums/test/constructible_from_enum.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: sandbox/enums/libs/enums/test/constructible_from_enum.cpp
==============================================================================
--- sandbox/enums/libs/enums/test/constructible_from_enum.cpp (original)
+++ sandbox/enums/libs/enums/test/constructible_from_enum.cpp 2011-02-27 19:34:17 EST (Sun, 27 Feb 2011)
@@ -19,6 +19,10 @@
{ // Constructible from enum
EnumClass e(EnumClass::Enum2);
}
-
+ { // copy constructor emulation
+ EnumClass e1=boost::convert_to<EnumClass>(EnumClass::Enum2);
+ EnumClass e2=e1;
+ BOOST_TEST(e2==EnumClass::Enum2);
+ }
return boost::report_errors();
}
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