Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-04-02 13:02:41


Author: steven_watanabe
Date: 2008-04-02 13:02:40 EDT (Wed, 02 Apr 2008)
New Revision: 44000
URL: http://svn.boost.org/trac/boost/changeset/44000

Log:
changed restrict_case to make_case
Text files modified:
   sandbox/switch/libs/switch/alternate/switch/case.hpp | 22 +++-------------------
   1 files changed, 3 insertions(+), 19 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-04-02 13:02:40 EDT (Wed, 02 Apr 2008)
@@ -137,19 +137,6 @@
     };
 };
 
-//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 {
 public:
@@ -168,8 +155,10 @@
     Case impl;
 };
 
+// allows a Case to be used in the expression template
+// framework.
 template<class Case>
-expression_template_case_t<restrict_case_t<Case> > restrict_case(Case& c) {
+expression_template_case_t<restrict_case_t<Case> > make_case(Case& c) {
     return(expression_template_case_t<restrict_case_t<Case> >(c));
 }
 
@@ -186,11 +175,6 @@
  return(expression_template_case_t<restrict_case_t<case_group_t<S,F> > >(f));
 }
 
-//template<class S, class F>
-//expression_template_case_t<typename make_case_group<S, F>::type> case_(F f) {
-// return(expression_template_case_t<typename make_case_group<S,F>::type>(f));
-//}
-
 template<int N, class F>
 expression_template_case_t<single_case_t<mpl::int_<N>, F> > case_c(F f) {
     return(expression_template_case_t<single_case_t<mpl::int_<N>, F> >(f));


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