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,604 of 33,346   
   red floyd to Frank Bergemann   
   Re: problem with function calling tracke   
   03 Nov 11 11:11:30   
   
   8ea6848f   
   From: no.spam.here@its.invalid   
      
   On 11/1/2011 12:28 PM, Frank Bergemann wrote:   
   > Hi,   
   > i want to create some generic function call tracker, which logs enter/   
   > exit of functions plus values of input&  output variables for entering   
   > respectively exiting functions.   
   > But i hit a problem to simplify the user interface (see main.cpp).   
   > Here's the code:   
   [redacted]   
      
   > struct _ArgCommon   
   > {   
   [redacted]   
   > };   
   >   
   > template   
   > struct _Arg : public _ArgCommon   
   > {   
   [redacted]   
   > };   
   >   
   [redacted]   
   > // variadic template type list transformation   
   > template   
   > struct _ArgTuple   
   > {   
   > 	typedef typename std::tr1::tuple&...>  Type;   
   > };   
      
   [redacted]   
   >   
   > struct _EnterExitMsgShared {   
   > 	static int _level;   
   > };   
   >   
   > template   
   > class _EnterExitMsgImpl   
   > {   
   [redacted]   
   > };   
   >   
   > template   
   > class EnterExitMsg : public _EnterExitMsgImpl<  typename   
   > _ArgTuple::Type>   
   > {   
   [redacted]   
   > };   
   > #endif /*ENTEREXITMSG_H_*/   
   [remainder redacted]   
      
   Doesn't matter.  Per ISO/IEC 14882:2003 2.10/2, 17.4.3.1/1,   
   and 17.4.3.1.2/1, your code will exhibit undefined behavior.   
      
   Any identifier with a leading underscore followed by an   
   upper case letter is reserved to the implementation (17.4.3.1.2/1).   
      
   Use of reserved identifiers is undefined (17.4.3.1/1).   
      
      
      
   --   
         [ 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