Explore >> Select a destination


You are here

www.cppstories.com
| | www.foonathan.net
14.0 parsecs away

Travel
| | Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen...
| | www.bfilipek.com
2.8 parsecs away

Travel
| | Variadic Templates from C++11 is probably not a feature that you use on a daily basis. But recently, I've come across one refactoring example where I've decided to give a try and apply variadics. Intro When I was doing some work in some old UI code I've noticed several similar lines of code that looked like that:
| | cppstories.com
3.8 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:
| | evanrelf.com
29.9 parsecs away

Travel
| Here's a handy cheat sheet for moving between sync and async Rust when using the and/or runtimes. The crate just re-exports other smaller crat...