2007-01-29から1日間の記事一覧
Effective C++ という本を買いました。 で、Introductionに''Template Meta-Programing''という手法が書かれていたのでちょっと動作テスト。 #include <iostream> template < int I > struct kaijo; template <> struct kaijo<1> { enum { value = 1 }; }; template < </iostream>…
Effective C++ という本を買いました。 で、Introductionに''Template Meta-Programing''という手法が書かれていたのでちょっと動作テスト。 #include <iostream> template < int I > struct kaijo; template <> struct kaijo<1> { enum { value = 1 }; }; template < </iostream>…