Boost logo

Boost :

Subject: Re: [boost] [spirit] VC10 ICE when defining a Karma/Qi rule in a 0x lambda
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2010-04-28 15:58:44


On 28/04/10 14:21, Hartmut Kaiser wrote:
>> //---8<---
>> #include <boost/spirit/include/karma.hpp>
>>
>> int main() {
>> []() {
>> boost::spirit::karma::rule<char*> r;
>> };
>> }
>> //---8<---
>
> The code you gave compiles just fine using g++ with --std=c++0x (I tried
> V4.3.4).

Really? I didn't think g++ supported lambdas until 4.5. The above code
doesn't compile here on 4.4.3.

http://gcc.gnu.org/gcc-4.3/cxx0x_status.html
http://gcc.gnu.org/gcc-4.4/cxx0x_status.html
http://gcc.gnu.org/gcc-4.5/cxx0x_status.html

John Bytheway


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk