Extracting Function Parameter and Return Types in C++
Using the metaprogramming capabilities of C++ and generic programming, it's possible to create an elegant parser of parameter types. Command-line interpreters, parsers, and syntax checkers are among the many applications.
May 28, 2012
Metaprgramming has become more and more popular and is now an essential part of modern C++ programming. By utilizing type information, it is possible implement generic programming and perform some compile time optimizations and checks. In this article, I use template metaprogramming to perform type extraction on a function and show an application of this technique. To demonstrate one of the possible practical applications, I've created an open-source app that functions like a basic command int... Read full story on Dr.Dobb's
Post a comment to the original version of this story on Dr.Dobb's