Boost logo

Boost Users :

From: Jeffery Cavallaro (jcavalla_at_[hidden])
Date: 2007-06-01 15:04:49


Oh d*mn. Never mind. I blew the build and run; the compiler and
runtime linker were playing mix and match between 1.33.1 and 1.34.
Build and run it right and it works -> fancy that :).

Thanks,
Jeff

On Fri, 2007-06-01 at 10:22 -0700, Jeffery Cavallaro wrote:
> Hi, all!
>
> I am a bit of a newbie, so forgive if this has already been covered.
>
> The 1.34 regex package (or at least my build of it on FC6) appears to be
> broken. Please consider the following:
>
> #include <iostream>
> #include <iomanip>
> #include <boost/regex.hpp>
>
> int
> main(int argc, char *argv[]) {
>
> boost::regex rl("ab");
> boost::regex ru("AB");
>
> bool pass = regex_search("ab", rl);
> std::cout << std::boolalpha << pass << std::endl;
> pass = regex_search("AB", ru);
> std::cout << std::boolalpha << pass << std::endl;
>
> return EXIT_SUCCESS;
>
> }
>
> When built with 1.33 (as delivered with FC6), both tests return true.
> When built under 1.34 (downloaded and built), the uppercase test returns
> false. Yuck.
>
> Am I missing something? (probably...)
>

-- 
Jeffery Cavallaro
POSTINI
Engineering Group
650-486-8342
-----------------------------------------------------------
This message may contain confidential and/or privileged 
information. This information is intended to be read only
by the individual or entity to whom it is addressed. If
you are not the intended recipient, you are on notice that
any review, disclosure, copying, distribution or use of
the contents of this message is strictly prohibited. If
you have received this message in error, please notify the
sender immediately and delete or destroy any copy of this
message.

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