$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Eric Niebler (eric_at_[hidden])
Date: 2008-04-09 11:58:40
Markus Werle wrote:
> Hi!
> 
> The following piece of code used to compile with previous versions of boost:
> 
> using namespace boost::xpressive;
> sregex path_delimiter = '/';
> 
> Now it bails out on VC8 SP1 with (beautified output):
> 
<snip>
> 
> What went wrong?
> 
> Changing the code to 
>   sregex path_delimiter = sregex::compile("/");
> 
> fixes the issue for me, but I missed this change in the release notes ...
There is an ambiguity here:
   // What does this do?
   sregex rx = '$';
You may have meant:
   // Zero-width match at the end of the line
   sregex rx = sregex::compile("$");
Or you may have meant:
   // Match a literal '$' character
   sregex rx = as_xpr('$');
Rather than guess what you mean, it's now an error and you have to say 
which. I simply forgot I made this change, which is why it's not in the 
release notes.
-- Eric Niebler Boost Consulting www.boost-consulting.com