2009-06-01から1日間の記事一覧

VC++のtype_traitsはvoidの適用結果がおかしい

comp.std.c++ - type traits if void type 以下、VC++10 Betaでの検証結果(VC9 SP1も同様) #include <iostream> #include <type_traits> using namespace std; int main() { cout << is_pod<void>::value << endl; // 1 cout << has_trivial_constructor<void>::value << endl; // 1 cout << has</void></void></type_traits></iostream>…