Hi,
Can anyone confirm if my observation is correct?
According to N2673, I will not be able to write:
class Parser
{
auto member = func();
};
but I will be able to write (according to the current Standard Draft):
class Parser
{
decltype( func() ) member = func();
};
Which eventually will encourage me to write and use a macro:
class Parser
{
DECLARE_AUTO_MEMBER( member, func() );
};
I have one particular usage in mind, which is the Boost.Spirit, where
the grammar rules are implemented with class non-static members.
Regards,
&rzej
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]