Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-02-12 21:57:44


Author: steven_watanabe
Date: 2008-02-12 21:57:43 EST (Tue, 12 Feb 2008)
New Revision: 43231
URL: http://svn.boost.org/trac/boost/changeset/43231

Log:
Fixed #includes for sorted_array
Text files modified:
   sandbox/switch/libs/switch/alternate/switch/case.hpp | 6 ++++++
   sandbox/switch/libs/switch/alternate/switch/sorted_array.hpp | 2 ++
   2 files changed, 8 insertions(+), 0 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 21:57:43 EST (Tue, 12 Feb 2008)
@@ -15,6 +15,7 @@
 #include <boost/mpl/fold.hpp>
 #include <boost/mpl/joint_view.hpp>
 #include <boost/mpl/single_view.hpp>
+#include <boost/mpl/range_c.hpp>
 
 namespace boost {
 
@@ -173,6 +174,11 @@
     return(expression_template_case_t<single_case_t<mpl::int_<N>, F> >(f));
 }
 
+template<int L, int H, class F>
+expression_template_case_t<restrict_case_t<case_group_t<mpl::range_c<int, L, H>, F> > > case_range_c(F f) {
+ return(expression_template_case_t<restrict_case_t<case_group_t<mpl::range_c<int, L, H>, F> > >(f));
+}
+
 }
 
 #endif

Modified: sandbox/switch/libs/switch/alternate/switch/sorted_array.hpp
==============================================================================
--- sandbox/switch/libs/switch/alternate/switch/sorted_array.hpp (original)
+++ sandbox/switch/libs/switch/alternate/switch/sorted_array.hpp 2008-02-12 21:57:43 EST (Tue, 12 Feb 2008)
@@ -14,6 +14,8 @@
 //#include <boost/thread/once.hpp>
 #include <boost/mpl/for_each.hpp>
 #include <boost/mpl/range_c.hpp>
+#include <boost/mpl/size.hpp>
+#include <boost/mpl/at.hpp>
 
 namespace boost {
 


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