C++0x non-staticデータメンバへのautoを許可

メンバ初期化子を使用する場合に限り、メンバ変数にも auto を許可しようという提案がでています。

template< class T >
struct MyType : T {
    auto data = func();
    static const size_t erm = sizeof(data);
};


N2713 Allow auto for non-static data members

C++0x言語拡張まとめ