[regex] Using Boost.Regex rather than std::regex with VC++

View: New views
6 Messages — Rating Filter:   Alert me  

[regex] Using Boost.Regex rather than std::regex with VC++

by Ahmed Charles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using VC2010, which provides an implementation of std::regex/std::tr1::regex and boost gladly uses this implementation rather than it's own. I'd like to turn this off, so that I get the boost version when including:

#include <boost/regex.hpp>

Thanks in advance.

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [regex] Using Boost.Regex rather than std::regex with VC++

by OvermindDL1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 2:02 PM, Ahmed Charles <ahmedcharles@...> wrote:
> I'm using VC2010, which provides an implementation of
> std::regex/std::tr1::regex and boost gladly uses this implementation rather
> than it's own. I'd like to turn this off, so that I get the boost version
> when including:
>
> #include <boost/regex.hpp>
>
> Thanks in advance.

This may not be an answer you want, I do not know the regex library,
but maybe Boost.Xpressive still uses the normal Boost-side code since
it uses regex, at the very least the static version does.
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [regex] Using Boost.Regex rather than std::regex with VC++

by Steven Watanabe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

AMDG

Ahmed Charles wrote:
> I'm using VC2010, which provides an implementation of
> std::regex/std::tr1::regex and boost gladly uses this implementation rather
> than it's own. I'd like to turn this off, so that I get the boost version
> when including:
>
> #include <boost/regex.hpp>
>  

This does give you the boost version.

In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [regex] Using Boost.Regex rather than std::regex with VC++

by Diederick C. Niehorster-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe through ADL it doesn't in his code? Ahmed, can you give us a
small snippet example of where you call a regex function and the one
you didnt expect is called?

Dee

On Sun, Nov 1, 2009 at 9:00 AM, Steven Watanabe <watanabesj@...> wrote:

> AMDG
>
> Ahmed Charles wrote:
>>
>> I'm using VC2010, which provides an implementation of
>> std::regex/std::tr1::regex and boost gladly uses this implementation
>> rather
>> than it's own. I'd like to turn this off, so that I get the boost version
>> when including:
>>
>> #include <boost/regex.hpp>
>>
>
> This does give you the boost version.
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@...
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [regex] Using Boost.Regex rather than std::regex withVC++

by John Maddock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I'm using VC2010, which provides an implementation of
> std::regex/std::tr1::regex and boost gladly uses this implementation
> rather
> than it's own. I'd like to turn this off, so that I get the boost version
> when including:
>
> #include <boost/regex.hpp>

boost/regex.hpp *always* provides the Boost version (in namespace boost::).

boost/tr1/regex.hpp provides the std:: version if it's available, otherwise
falls back to the boost version (in namespace std::tr1::).

HTH, John.

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [regex] Using Boost.Regex rather than std::regex withVC++

by Ahmed Charles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I must've messed it up somehow. Now I'm getting the boost version. Thanks.

On Sun, Nov 1, 2009 at 3:39 AM, John Maddock <john@...> wrote:
I'm using VC2010, which provides an implementation of
std::regex/std::tr1::regex and boost gladly uses this implementation rather
than it's own. I'd like to turn this off, so that I get the boost version
when including:

#include <boost/regex.hpp>

boost/regex.hpp *always* provides the Boost version (in namespace boost::).

boost/tr1/regex.hpp provides the std:: version if it's available, otherwise falls back to the boost version (in namespace std::tr1::).

HTH, John.
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users



--
Ahmed Charles
http://www.ahmedcharles.com

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users