メンバ初期化子を使用する場合に限り、メンバ変数にも 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
メンバ初期化子を使用する場合に限り、メンバ変数にも 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