|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-02-12 19:59:53
Author: steven_watanabe
Date: 2008-02-12 19:59:52 EST (Tue, 12 Feb 2008)
New Revision: 43229
URL: http://svn.boost.org/trac/boost/changeset/43229
Log:
Switched to joint_view after figuring out how to get msvc to compile it in a reasonable amount of time
Text files modified:
sandbox/switch/libs/switch/alternate/switch/case.hpp | 11 +++++------
1 files changed, 5 insertions(+), 6 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 19:59:52 EST (Tue, 12 Feb 2008)
@@ -11,11 +11,9 @@
#define BOOST_SWITCH_CASE_HPP_INCLUDED
#include <boost/utility/enable_if.hpp>
-#include <boost/mpl/vector/vector50.hpp>
#include <boost/mpl/int.hpp>
-#include <boost/mpl/back_inserter.hpp>
-#include <boost/mpl/copy.hpp>
#include <boost/mpl/fold.hpp>
+#include <boost/mpl/joint_view.hpp>
namespace boost {
@@ -72,10 +70,11 @@
Case1(case1),
Case2(case2) {}
// msvc does not like mpl::joint_view
- typedef typename mpl::copy<
+ // if the labels are not reversed.
+ typedef typename mpl::joint_view<
typename Case2::labels,
- mpl::back_inserter<typename Case1::labels>
- >::type labels;
+ typename Case1::labels
+ > labels;
using Case1::apply;
using Case2::apply;
};
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