C++ solution using template metaprogramming.
Merge pull request #92 from derrickturk/master

C++ solution using template metaprogramming.