|
Boost Users : |
Subject: [Boost-users] regex icase
From: Micha³ Nowotka (mmmnow_at_[hidden])
Date: 2009-08-26 06:07:32
Hello,
in the following class:
class MyClass : public boost::regex
{...}
I want to be able to switch between case-sensitive and non-sensitive
matching so i defined this method:
void MyClass::setIgnoreCase(bool ignoreCase /* = true */)
{
assign(str(), ignoreCase? (flags() | boost::regex::icase) : (flags()
| (~boost::regex::icase)));
}
but then I get segmentation fault.
I know this is caused by bitwise negation (~) but i don't know why. Do you?
-- Pozdrawiam Micha³ Nowotka
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