Update of /cvsroot/boost/boost/boost/xpressive/proto
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8429/proto
Modified Files:
proto_fwd.hpp
Log Message:
don't use references as template parameters
Index: proto_fwd.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/proto_fwd.hpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- proto_fwd.hpp 22 Feb 2007 00:55:44 -0000 1.53
+++ proto_fwd.hpp 20 Mar 2007 01:27:31 -0000 1.54
@@ -396,13 +396,13 @@
namespace detail
{
template<typename T>
- struct static_
+ struct default_factory
{
- static T const value;
+ T operator()() const
+ {
+ return T();
+ }
};
-
- template<typename T>
- T const static_<T>::value = T();
}
template<typename Grammar, typename N = mpl::long_<0> >
@@ -426,7 +426,7 @@
template<typename Grammar>
struct identity;
- template<typename Grammar, typename Always, Always const &Value =
detail::static_<Always>::value>
+ template<typename Grammar, typename Always, typename Factory =
detail::default_factory<Always> >
struct always;
template<typename Grammar, typename BranchState>
-------------------------------------------------------------------------
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