Total 2 Posts
This tag aggregates various programming tutorials that fit into no specific category.
Enumerations with Strings
Since getting the strings of enum variables is a bit tedious when done using a *switch*, the boost preprocessor can be used to create enums with an *automatic* *toString* function.
Lambda functions were introduced by the C++ - 11 standard, allowing to write anonymous functions that can be used instead of complete structs or classes, avoiding the need to create complete class and function definitions. As an example, consider a function to compute the square of a number. In C+