User profile: prestokeys

User info
User name:prestokeys
Bio:Recreational programmer who started learning in 2013. Currently addicted as I learn more and more.
History
Joined:
Number of posts:253
Latest posts:

std::result_of
[code] #include <iostream> #include <type_traits> int f(int) {return 2;} int main() { ty...

Ideas for a design to handle a crazy set of rules
A Wizard follows a certain school of magic. The school he follows gives attributes to him in no pa...

Is an Abstract Base Class with Templates Possible?
Something like [code] class Animal { public: template <class FOOD, int N> virtua...

Stuck on a metaprogramming problem
The error is that the 'value' parameter of inRange must be a compile-time constant, so I redefined i...

Stuck on a metaprogramming problem
The following function inRange, which returns true only if 'value' is among RANGE... works correctly...