私は Visual C++ 2010 を使用しています。コード スニペットは次のとおりです。
std::set<int> s;
decltype(s)::value_type param = 0;
次のエラー メッセージが表示されました。
> error C2039: 'value_type' : is not a member of '`global namespace''
> error C2146: syntax error : missing ';' before identifier 'param'