operator<<
John Cormie's Radio Weblog

 






Subscribe to "operator<<" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Tuesday, July 22, 2003


Here's a little tidbit from my new book (Modern C++ design, forward) that made me laugh out loud. Not a "ha ha" funny laugh, but more so a "You're not supposed to use templates like that! This author must be insane!" laugh.


Template struct CTAssert;
Template<> struct CTAssert{};

// ex. usage
foo() {
// COMPILE time assertion!
CTAssert foo;
}


9:58:03 AM     comment []


Click here to visit the Radio UserLand website. © Copyright 2004 John Cormie.
Last update: 3/21/2004; 10:29:40 AM.

July 2003
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Jun   Aug