Gmane
Picon
From: Joel de Guzman <djowel <at> gmx.co.uk>
Subject: Re: Closure problem
Newsgroups: gmane.comp.parsers.spirit.general
Date: 2003-04-03 00:50:26 GMT (5 years, 14 weeks, 5 hours and 17 minutes ago)
Vaclav Vesely wrote:
>> Hi,
>>
>> VC 7.1 (at least) can't compile an attached very simplified example,
>> but I don't know why.
>>
>> I've declared a rule with a closure, but I don't use any its member
>> in this example. When the member type is double, than all works
>> fine. But when I change the type to shared_ptr<double>, the compile
>> error arise.

You've hit a bug. Try making member type std::string and it also won't
compile. Also try replacing my_rule = real_p; with my_rule = real_p >> eps_p;
and the code compiles. The problem is the incomatibility of the real_p's
match type (match<double) with the my_rule's match type
(match<shared_ptr<double>). I'll investigate the problem and come up
with a fix.

--
Joel de Guzman
joel at boost-consulting.com
http://www.boost-consulting.com
http://spirit.sf.net

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/