|
You are here |
www.cppstories.com | ||
| | | | |
cppstories.com
|
|
| | | | | Recently, I've found somethinginterestingin Visual Studio that improved my Logger! I had a function called AddMsg /** appends message to the log file */ void AddMsg(LOG_MODE m, int level, char* strModule, char *strMsg, ...); But, when you wanted to add a comment you needed to use quite complicated and long syntnax, like: | |
| | | | |
www.foonathan.net
|
|
| | | | | Common C++ guidelines are to initialize variables on use and to make variables const whenever possible. But sometimes a variable is unchanged once initialized and the initialization is complex, like involving a loop. Then an IIFE immediately-invoked function expression can be used: the variable is initialized by a lambda that computes the value, which is then immediately invoked to produce the value. Then the variable is initialized on use and can also be made const. Ive been recently working on a meta... | |
| | | | |
www.fluentcpp.com
|
|
| | | | | Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type. | |
| | | | |
vitalyobukhov.wordpress.com
|
|
| | | Visit the post for more. | ||