$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [spirit] Support for one-pass iterators?
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-10-19 09:51:43
On Tue, Oct 20, 2009 at 2:46 AM, Andrey Semashev
<andrey.semashev_at_[hidden]>wrote:
> Christian Schladetsch wrote:
>
>> grammar(
>>> start_type const& start
>>> , std::string const& name_ = "unnamed-grammar")
>>> => : proto::extends<terminal, base_type>(terminal::make(start.alias()))
>>> , name_(name_)
>>> {}
>>>
>>>
>>> Here "start" is a reference to a not yet constructed object.
>>>
>>
>> False.
>>
>
> Care to elaborate?
>
>
Sure, but this is basic C++. Before the ctor to grammar(...) is invoked, the
arguments to it have been evaluated. This requires construction of its
arguments.