conversion between Boost.Xpressive and Boost.RegEx

B

Barry

I used Boost.Xpressive after 1.3.4, and found it interesting and
helpful, but I suffer from long complie-time. So I wonder there is a
way to write the regular expression in Xpressive and use it in
Boost.RegEx, since there grammer is simmilar to use
 
E

Eric Niebler

Barry said:
I used Boost.Xpressive after 1.3.4, and found it interesting and
helpful, but I suffer from long complie-time. So I wonder there is a
way to write the regular expression in Xpressive and use it in
Boost.RegEx, since there grammer is simmilar to use


If you want to use dynamic regexes with xpressive (the string-based
kind), you can improve compile times by only including all of xpressive
in one file, which has one function in it that accepts a string and
returns a basic_regex<> object. Everywhere else, only include the files
that you need for what you're doing, such as basic_regex.hpp,
match_results.hpp and regex_algorithm.hpp.

HTH,

--
Eric Niebler
Boost Consulting
www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top