From 5b61420b52599865d9f8e193bc3f791e1d3b3baa Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 26 Jul 2015 14:12:36 -0400 Subject: [PATCH] CmdCommands: zshCommand::operator< wanted to be const for clang 3.2 --- src/commands/CmdCommands.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdCommands.cpp b/src/commands/CmdCommands.cpp index 314731bcc..025d80999 100644 --- a/src/commands/CmdCommands.cpp +++ b/src/commands/CmdCommands.cpp @@ -80,13 +80,14 @@ CmdZshCommands::CmdZshCommands () //////////////////////////////////////////////////////////////////////////////// struct ZshCommand { - bool operator< (const struct ZshCommand&); + bool operator< (const struct ZshCommand&) const; Command::Category _category; std::string _command; std::string _description; }; -bool ZshCommand::operator< (const struct ZshCommand& other) +//////////////////////////////////////////////////////////////////////////////// +bool ZshCommand::operator< (const struct ZshCommand& other) const { // Lexicographical comparison. if (_category != other._category)