home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,999 of 33,346   
   Christopher Creutzig to Roman W   
   Re: Why not add a feature to let lambda    
   10 Mar 12 11:22:22   
   
   ac60c715   
   From: christopher@creutzig.de   
      
   On 3/9/12 1:46 AM, Roman W wrote:   
      
   > Since a lambda is always a function object, couldn't you call it as   
   >   
   > (*this)(arg1, arg2, ...);   
      
   No, see §5.1.2.7:   
      
   | […] for purposes of […] determining the type and value of this   
   | (9.3.2) […], the compound-statement is considered in the context of   
   | the lambda-expression.   
      
      
   Christopher   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca