diff options
author | Brad King <brad.king@kitware.com> | 2011-05-17 12:56:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-17 12:56:08 (GMT) |
commit | 169bb05f90258447a0b93379364374eb03e45bf7 (patch) | |
tree | af2a0bca6aaa65c0019445c7c2a3ef7c6c4c484f /Tests/CMakeLib | |
parent | 4e2185cbd0d37dd642eefdc3365e8985d8f688c0 (diff) | |
download | CMake-169bb05f90258447a0b93379364374eb03e45bf7.zip CMake-169bb05f90258447a0b93379364374eb03e45bf7.tar.gz CMake-169bb05f90258447a0b93379364374eb03e45bf7.tar.bz2 |
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.
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r-- | Tests/CMakeLib/run_compile_commands.cxx | 2 |
1 files changed, 0 insertions, 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<cmStdString, cmStdString> { 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<CommandType> TranslationUnitsType; |