掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
コンパイルエラーを回避するには? (ID:73441)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
Visual C++ 2010 では再現できませんでした。コンパイル・エラーになりません。 #include <hash_map> #include <functional> namespace gdf_com { template<typename T> class private_allocator : public std::allocator<T> {}; template <typename T1, typename T2, typename U=std::hash_compare<T1, std::less<T1> >, template <class> class U2=private_allocator> struct hash_map : public std::hash_map<T1, T2, U, U2<std::pair<T1, T2> > > {}; } int main() { gdf_com::hash_map<int,int> map; }
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.