From 169bb05f90258447a0b93379364374eb03e45bf7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 May 2011 08:56:08 -0400 Subject: Provide std::map<>::at for use in run_compile_commands Many compilers we support do not provide the at() member of std::map. Use the workaround added by commit a7e7a04a (Fix run_compile_commands build on Apple GCC 3.3, 2011-05-16) for all compilers. --- Tests/CMakeLib/run_compile_commands.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx index 31049d3..d7422a8 100644 --- a/Tests/CMakeLib/run_compile_commands.cxx +++ b/Tests/CMakeLib/run_compile_commands.cxx @@ -5,7 +5,6 @@ public: class CommandType: public std::map { public: -#if defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ < 4 cmStdString const& at(cmStdString const& k) const { const_iterator i = this->find(k); @@ -13,7 +12,6 @@ public: static cmStdString empty; return empty; } -#endif }; typedef std::vector TranslationUnitsType; -- cgit v0.12