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,813 of 33,346    |
|    =?ISO-8859-1?Q?Daniel_Kr=FCgler?= to All    |
|    Re: Why is static member initialization     |
|    17 Jan 12 14:19:28    |
      From: daniel.kruegler@googlemail.com              Am 17.01.2012 21:08, schrieb Frank Birbacher:       [..]       > I like the typedef approach. I didn't know it needs to instantiate the       > complete template. My approach is a little more overhead, but maybe it       > tricks the compiler into instantiation. I suggest to use an empty class       > template ForcePrintMe whose type depends on&PrintingYou::pm like this       > (tested on gcc4.6, not tested on VS2010, maybe one of you can do so and       > post the result):       >       > #include |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca