Update of /cvsroot/boost/boost/libs/xpressive/proto/test
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29975/libs/xpressive/proto/test
Modified Files:
matches.cpp
Log Message:
xpressive transforms use new proto::switch_ for better compile times
Index: matches.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/matches.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- matches.cpp 6 Apr 2007 21:03:09 -0000 1.2
+++ matches.cpp 6 Apr 2007 23:59:10 -0000 1.3
@@ -62,21 +62,21 @@
struct MyCases
{
- template<typename Expr, typename Tag = typename Expr::tag_type>
+ template<typename Tag>
struct case_
: proto::not_<proto::_>
{};
+};
- template<typename Expr>
- struct case_<Expr, proto::tag::right_shift>
- : proto::_
- {};
+template<>
+struct MyCases::case_<proto::tag::right_shift>
+ : proto::_
+{};
- template<typename Expr>
- struct case_<Expr, proto::tag::add>
- : proto::_
- {};
-};
+template<>
+struct MyCases::case_<proto::tag::add>
+ : proto::_
+{};
void test_matches()
{
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs