
19 Oct
2009
19 Oct
'09
1:51 p.m.
On Tue, Oct 20, 2009 at 2:46 AM, Andrey Semashev <andrey.semashev@gmail.com>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.