2009-04-16から1日間の記事一覧
C++03だと依存名に対してtypenameを付けないといけないので メタ関数書くとけっこう長くなってしまいます。 template <class T> struct identity { typedef T type; // これはいいんだけど }; template <class T> struct add_pointer { // メタ関数内でメタ関数呼んだりするとt</class></class>…
C++03だと依存名に対してtypenameを付けないといけないので メタ関数書くとけっこう長くなってしまいます。 template <class T> struct identity { typedef T type; // これはいいんだけど }; template <class T> struct add_pointer { // メタ関数内でメタ関数呼んだりするとt</class></class>…