Update of /cvsroot/boost/boost/boost/xpressive/proto
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7527

Modified Files:
        debug.hpp 
Log Message:
fix debug for MAX_ARITY==2

Index: debug.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/debug.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- debug.hpp   5 Apr 2007 20:49:11 -0000       1.3
+++ debug.hpp   16 Apr 2007 04:37:05 -0000      1.4
@@ -107,29 +107,6 @@
                 this->first_ = false;
             }
 
-            template<typename Tag, typename Args>
-            void operator()(expr<Tag, Args, 1> const &expr) const
-            {
-                this->sout_ << std::setw(this->depth_) << (this->first_? "" : 
", ")
-                    << proto_tag_name(Tag()) << "(\n";
-                display_expr display(this->depth_ + 4, this->sout_);
-                display(proto::arg(expr));
-                this->sout_ << std::setw(this->depth_) << "" << ")\n";
-                this->first_ = false;
-            }
-
-            template<typename Tag, typename Args>
-            void operator()(expr<Tag, Args, 2> const &expr) const
-            {
-                this->sout_ << std::setw(this->depth_) << (this->first_? "" : 
", ")
-                    << proto_tag_name(Tag()) << "(\n";
-                display_expr display(this->depth_ + 4, this->sout_);
-                display(proto::left(expr));
-                display(proto::right(expr));
-                this->sout_ << std::setw(this->depth_) << "" << ")\n";
-                this->first_ = false;
-            }
-
         #define BOOST_PROTO_ARG(z, n, data)\
             display(proto::arg_c<n>(expr));\
             /**/
@@ -147,7 +124,7 @@
             }\
             /**/
 
-        #define BOOST_PP_LOCAL_LIMITS (3, BOOST_PROTO_MAX_ARITY)
+        #define BOOST_PP_LOCAL_LIMITS (1, BOOST_PROTO_MAX_ARITY)
         #include BOOST_PP_LOCAL_ITERATE()
         #undef BOOST_PROTO_ARG
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to