On 20/10/2016 11:00, MAURICE Jean wrote:
So ... I spent a long time to step into the app with the debugger. The string "{m_pimpl={...}}" is what the debugger shows in childNode.infoNode.rFullPathFilePattern.
I don't believe that's a string, m_pimpl is just the name of the single variable in the regex object that points to it's internal data, but I repeat: *you cannot easily see the stored regular expression in the debugger*, you will need to call the str() member function or else stream to cout or clog or something to extract that information. I'll need the contents of the string that you are trying to match against as well to explain why no match occurs. John. Ok, update, you might be able to get to the stored expression via: childNode.infoNode.rFullPathFilePattern.m_pimpl.px->m_expression or maybe not...
And childNode.infoNode.rFullPathFilePattern is the third parameter of if(true==boost::regex_match(sAdaptation, what, childNode.infoNode.rFullPathFilePattern))
it cannot return true : right ? (in fact it is what happens)
TIA Jean
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de John Maddock Envoyé : jeudi 20 octobre 2016 11:45 À : boost-users@lists.boost.org Objet : Re: [Boost-users] upgrade from boost 1.39 to boost 1.50. Issue with regex_match
On 20/10/2016 10:17, MAURICE Jean wrote:
Hi John,
The first thing I would like to know is :
Is "{m_pimpl={.}}" a correct regular expression ? No, it's just a view of the internals of something (the regex object?)
You would need to call basic_regex::str() to get the actual stored regular expression, or else just stream the regex object to cout.
If yes, what does it mean ?
TIA Jean
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users