diff options
author | Brad King <brad.king@kitware.com> | 2009-09-29 12:34:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-29 12:34:39 (GMT) |
commit | aa8c003609dd57d47d7a45624185bc71134fe294 (patch) | |
tree | ae6a9857179ea530d8b3746125a4237032b9cc2a /Source/cmGlobalUnixMakefileGenerator3.h | |
parent | b0744ad969e19b86aa82ee01f69a203f725d436d (diff) | |
download | CMake-aa8c003609dd57d47d7a45624185bc71134fe294.zip CMake-aa8c003609dd57d47d7a45624185bc71134fe294.tar.gz CMake-aa8c003609dd57d47d7a45624185bc71134fe294.tar.bz2 |
Qualify std::map compare functor as const
Some older STL implementations invoke the comparison functor as a const
object, so the function call operator must be 'const' qualified. This
fixes the commit "Fix support for OLD behavior of policy CMP0002" to
compile on older STLs.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.h')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.h b/Source/cmGlobalUnixMakefileGenerator3.h index 54363e4..401888f 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.h +++ b/Source/cmGlobalUnixMakefileGenerator3.h @@ -180,7 +180,7 @@ protected: std::vector<int> Marks; void WriteProgressVariables(unsigned long total, unsigned long& current); }; - struct ProgressMapCompare { bool operator()(cmTarget*,cmTarget*); }; + struct ProgressMapCompare { bool operator()(cmTarget*,cmTarget*) const; }; typedef std::map<cmTarget*, TargetProgress, ProgressMapCompare> ProgressMapType; ProgressMapType ProgressMap; |