Fixed bug with grepping for literals.

Added Sunpro workaround.


[SVN r23093]
This commit is contained in:
John Maddock
2004-06-12 10:10:07 +00:00
parent 2e10c5ec17
commit ca44c8182c
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ perl_matcher<BidiIterator, Allocator, traits, Allocator2>::perl_matcher(BidiIter
estimate_max_state_count(static_cast<category*>(0));
if(!(m_match_flags & (match_perl|match_posix)))
{
if(re.flags() & regex_constants::perlex)
if((re.flags() & regex_constants::perlex) || (re.flags() & regex_constants::literal))
m_match_flags |= match_perl;
else
m_match_flags |= match_posix;