Explore >> Select a destination


You are here

www.cppstories.com
| | cppstories.com
1.1 parsecs away

Travel
| | 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
3.0 parsecs away

Travel
| | 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
6.2 parsecs away

Travel
| | 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
8.6 parsecs away

Travel
| Visit the post for more.