Boost logo

Boost :

Subject: Re: [boost] [spirit] Support for one-pass iterators?
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-10-19 10:45:26


Before I spend an hour researching the pathology of this ''bug":

Am I right in assuming that the poster was complaining about Boost.Spirit
using a malformed instance? An instance that was passed to it by reference?

If so, I stand by all the facts I stated about said instance being created
before being passed.

If not, then there is more going on than I originally assumed, and I will
henceforth bow out of the issue. But I remain interested in whether the
caller can blame the callee in any case such as:

void foo(X& x) { x.bar(); }

Best Regards,
Christian.

On Tue, Oct 20, 2009 at 3:36 AM, Andrey Semashev
<andrey.semashev_at_[hidden]>wrote:

> Christian Schladetsch wrote:
>
>> I'll bet that you are calling a virtual method from a base class's
>> initialiser list, and blaming it on Boost.Spirit...
>>
>> On Tue, Oct 20, 2009 at 3:12 AM, Christian Schladetsch <
>> christian.schladetsch_at_[hidden]> wrote:
>>
>> You can, of course, make a situation where you can pass a reference to a
>>> malformed instance.
>>>
>>
> Please, don't guess. I described the case in one of my previous postings:
>
> http://article.gmane.org/gmane.comp.lib.boost.devel/194839
>
> The docs I am referring to are here, for example:
>
>
> http://svn.boost.org/svn/boost/trunk/libs/spirit/doc/html/spirit/notes/porting_from_spirit_1_8_x.html
>
>
> http://svn.boost.org/svn/boost/trunk/libs/spirit/doc/html/spirit/qi/tutorials/roman_numerals.html#spirit.qi.tutorials.roman_numerals.grammars
>
> and some other places.
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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