|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70097 - sandbox/enums/libs/enums/example
From: vicente.botet_at_[hidden]
Date: 2011-03-17 20:31:01
Author: viboes
Date: 2011-03-17 20:30:58 EDT (Thu, 17 Mar 2011)
New Revision: 70097
URL: http://svn.boost.org/trac/boost/changeset/70097
Log:
Enums: update doc with most of the files moved to subdirs
Text files modified:
sandbox/enums/libs/enums/example/color_alert.cpp | 11 +++++++----
sandbox/enums/libs/enums/example/unsigned.cpp | 2 +-
sandbox/enums/libs/enums/example/version.cpp | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
Modified: sandbox/enums/libs/enums/example/color_alert.cpp
==============================================================================
--- sandbox/enums/libs/enums/example/color_alert.cpp (original)
+++ sandbox/enums/libs/enums/example/color_alert.cpp 2011-03-17 20:30:58 EDT (Thu, 17 Mar 2011)
@@ -10,17 +10,20 @@
//
//////////////////////////////////////////////////////////////////////////////
-#include <boost/enums/emulation.hpp>
+#include <boost/enums/scoped/emulation.hpp>
BOOST_ENUM_CLASS_START(Color, int)
-{ Red, Orange, Yellow, Green, Blue, Violet };
+{ Red, Orange, Yellow, Green, Blue, Violet }
BOOST_ENUM_CLASS_END(Color, int)
BOOST_ENUMS_SPECIALIZATIONS(Color, int)
BOOST_ENUM_CLASS_START(Alert, int)
-{ Green, Yellow, Red };
+{ Green, Yellow, Red }
BOOST_ENUM_CLASS_END(Alert, int)
BOOST_ENUMS_SPECIALIZATIONS(Alert, int)
-void compile_fail() { Alert a = Alert::Green; bool armWeapons = ( a >= Color::Yellow ); }
+void compile_fail() {
+ Alert a = Alert::Green;
+ bool armWeapons = ( a >= Color::Yellow );
+}
Modified: sandbox/enums/libs/enums/example/unsigned.cpp
==============================================================================
--- sandbox/enums/libs/enums/example/unsigned.cpp (original)
+++ sandbox/enums/libs/enums/example/unsigned.cpp 2011-03-17 20:30:58 EDT (Thu, 17 Mar 2011)
@@ -10,7 +10,7 @@
//
//////////////////////////////////////////////////////////////////////////////
-#include <boost/enums/emulation.hpp>
+#include <boost/enums/scoped/emulation.hpp>
#include <iostream>
BOOST_ENUM_TYPE_START(E, unsigned long)
Modified: sandbox/enums/libs/enums/example/version.cpp
==============================================================================
--- sandbox/enums/libs/enums/example/version.cpp (original)
+++ sandbox/enums/libs/enums/example/version.cpp 2011-03-17 20:30:58 EDT (Thu, 17 Mar 2011)
@@ -10,7 +10,7 @@
//
//////////////////////////////////////////////////////////////////////////////
-#include <boost/enums/emulation.hpp>
+#include <boost/enums/scoped/emulation.hpp>
#include <stdint.h>
BOOST_ENUM_CLASS_START(Version, uint8_t)
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