Update of /cvsroot/boost/boost/boost/xpressive
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13310/boost/xpressive
Modified Files:
regex_primitives.hpp
Log Message:
more work on BOOST_PROTO_EXTENDS
Index: regex_primitives.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_primitives.hpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- regex_primitives.hpp 3 Feb 2007 09:04:30 -0000 1.23
+++ regex_primitives.hpp 15 Feb 2007 23:06:56 -0000 1.24
@@ -38,8 +38,13 @@
{
mark_tag(int mark_nbr)
{
- basic_mark_tag that = {{mark_nbr}};
- this->assign(that);
+ mark_placeholder mark = {mark_nbr};
+ proto::arg(*this) = mark;
+ }
+
+ operator basic_mark_tag const &() const
+ {
+ return this->cast();
}
using proto::extends<basic_mark_tag, mark_tag>::operator =;
-------------------------------------------------------------------------
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