[regex] regex_replace_example and the doc

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[regex] regex_replace_example and the doc

Shunsuke Sogame
Hi,
I now recall this attractive example's mistake.


<libs/regex/example/snippets/regex_replace_example.cpp>
line89-90 maybe should be:

    extern const char* pre_expression = "(<)|(>)|(&)|\\r";
    extern const char* pre_format = "(?1&lt;)(?2&gt;)(?3&amp;)";


Thus, <libs/regex/doc/regex_replace.html> highlighted by this cpp is weird. :-)


--
Regards,
Shunsuke Sogame

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [regex] regex_replace_example and the doc

John Maddock
>
> <libs/regex/example/snippets/regex_replace_example.cpp>
> line89-90 maybe should be:
>
>    extern const char* pre_expression = "(<)|(>)|(&)|\\r";
>    extern const char* pre_format = "(?1&lt;)(?2&gt;)(?3&amp;)";

Well spotted!

Thanks,

John.
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

[intrusive_ptr] Interface consistence with shared_ptr and the lack of reset

Bertrand Augereau
In reply to this post by Shunsuke Sogame
Hello,
shared_ptr supports reset(), but intrusive_ptr doesn't, which makes
porting from one to the other harder than necessary.
Is it possible to add it?

Thanks,
Bertrand



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost