Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > N2673 question
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 9788 of 9909
Post > Topic >>

N2673 question

by restor <akrzemi1@[EMAIL PROTECTED] > Jul 14, 2008 at 09:41 AM

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! ]
 




 3 Posts in Topic:
N2673 question
restor <akrzemi1@[EMAI  2008-07-14 09:41:29 
Re: N2673 question
Jeff Koftinoff <jeff.k  2008-07-17 11:29:22 
Re: N2673 question
restor <akrzemi1@[EMAI  2008-07-18 15:05:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 12:58:21 CDT 2008.