Update of /cvsroot/boost/boost/boost/xpressive/proto/transform
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8429/proto/transform
Modified Files:
arg.hpp
Log Message:
don't use references as template parameters
Index: arg.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/transform/arg.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- arg.hpp 3 Feb 2007 00:14:33 -0000 1.10
+++ arg.hpp 20 Mar 2007 01:27:31 -0000 1.11
@@ -142,7 +142,7 @@
};
// Always return the specified type/object
- template<typename Grammar, typename Always, Always const &Value>
+ template<typename Grammar, typename Always, typename Factory>
struct always
: Grammar
{
@@ -155,10 +155,10 @@
};
template<typename Expr, typename State, typename Visitor>
- static Always const &
+ static Always
call(Expr const &, State const &, Visitor &)
{
- return Value;
+ return Factory()();
}
};
-------------------------------------------------------------------------
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