Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-02-12 20:06:11


Author: steven_watanabe
Date: 2008-02-12 20:06:11 EST (Tue, 12 Feb 2008)
New Revision: 43230
URL: http://svn.boost.org/trac/boost/changeset/43230

Log:
Fixed errors caused by last commit
Text files modified:
   sandbox/switch/libs/switch/alternate/switch/case.hpp | 27 ++++++++++++++-------------
   1 files changed, 14 insertions(+), 13 deletions(-)

Modified: sandbox/switch/libs/switch/alternate/switch/case.hpp
==============================================================================
--- sandbox/switch/libs/switch/alternate/switch/case.hpp (original)
+++ sandbox/switch/libs/switch/alternate/switch/case.hpp 2008-02-12 20:06:11 EST (Tue, 12 Feb 2008)
@@ -14,6 +14,7 @@
 #include <boost/mpl/int.hpp>
 #include <boost/mpl/fold.hpp>
 #include <boost/mpl/joint_view.hpp>
+#include <boost/mpl/single_view.hpp>
 
 namespace boost {
 
@@ -83,7 +84,7 @@
 class single_case_t {
 public:
     single_case_t(F f) : impl(f) {}
- typedef mpl::vector1<N> labels;
+ typedef mpl::single_view<N> labels;
     template<class R>
     R apply(N n) const {
         return(impl(n));
@@ -113,18 +114,18 @@
     };
 };
 
-class empty_case {
-public:
- template<class T>
- explicit empty_case(T&) {}
- typedef mpl::vector0<> labels;
- void apply();
-};
-
-template<class S, class F>
-struct make_case_group {
- typedef typename mpl::fold<S, empty_case, add_to_group<F> >::type type;
-};
+//class empty_case {
+//public:
+// template<class T>
+// explicit empty_case(T&) {}
+// typedef mpl::vector0<> labels;
+// void apply();
+//};
+//
+//template<class S, class F>
+//struct make_case_group {
+// typedef typename mpl::fold<S, empty_case, add_to_group<F> >::type type;
+//};
 
 template<class Case>
 class expression_template_case_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