Boost logo

Boost Users :

From: Keith Smith (ksmith_at_[hidden])
Date: 2004-04-21 14:05:32


I tried your suggestion, and it appears that I still have the same errors.
Anyone have any other ideas?

(See Attached)

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of John Maddock
Sent: Thursday, April 15, 2004 5:45 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] problems using VC 7.1 and boost regex library

> I have been trying to compile the following code with VC 7.1 ( which
> compiled fine with VC 6 ) with no luck.
>
> std::string m_rBuffer;
> boost::regex m_rStartExp;
>
> string::const_iterator rRawDataBegin = m_rBuffer.begin();
> string::const_iterator rRawDataEnd = m_rBuffer.end();
>
> boost::cmatch rStartMessage;
>
> unsigned int flags = boost::match_default;
> while ( boost::regex_search(rRawDataBegin,
> rRawDataEnd,
> rStartMessage,
> m_rStartExp,
> flags) )
>
> Included is the compiler error report.

The match-flags area distinct type, so use:

boost::match_flag_type flags = boost::match_default;

John.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net