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

Modified Files:
        construct.hpp 
Log Message:
suppress gcc warning

Index: construct.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/transform/construct.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- construct.hpp       21 Jun 2007 23:11:11 -0000      1.9
+++ construct.hpp       22 Jun 2007 23:23:49 -0000      1.10
@@ -86,6 +86,10 @@
             struct apply_<R, Expr, State, Visitor, typename 
R::proto_is_placeholder_>
               : nested_type<typename R::template apply<Expr, State, 
Visitor>::type>
             {};
+
+            template<typename T>
+            void ignore_unused(T const &)
+            {}
         }
 
         #define BOOST_PROTO_APPLY_(Z, N, DATA)                                 
                     \
@@ -144,6 +148,7 @@
             {
                 typename Grammar::template apply<Expr, State, Visitor>::type 
const &expr2
                     = Grammar::call(expr, state, visitor);
+                detail::ignore_unused(expr2);
                 typename apply<Expr, State, Visitor>::type that = {
                     BOOST_PP_ENUM_BINARY_PARAMS(N, detail::as_transform<Arg, 
>::type::call(expr2, state, visitor) BOOST_PP_INTERCEPT)
                 };
@@ -158,6 +163,7 @@
             {
                 typename Grammar::template apply<Expr, State, Visitor>::type 
const &expr2
                     = Grammar::call(expr, state, visitor);
+                detail::ignore_unused(expr2);
                 return typename apply<Expr, State, Visitor>::type(
                     BOOST_PP_ENUM_BINARY_PARAMS(N, detail::as_transform<Arg, 
>::type::call(expr2, state, visitor) BOOST_PP_INTERCEPT)
                 );


-------------------------------------------------------------------------
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