You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2017/02/26 16:41:57 UTC

[trafficserver] branch master updated: TS-3838: Fixup - compiler differences on predicate argument to std::sort.

This is an automated email from the ASF dual-hosted git repository.

amc pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  71a2fc5   TS-3838: Fixup - compiler differences on predicate argument to std::sort.
71a2fc5 is described below

commit 71a2fc5f0d8f95007be5e2217f5cc56929f0e6b3
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Sun Feb 26 10:40:56 2017 -0600

    TS-3838: Fixup - compiler differences on predicate argument to std::sort.
---
 proxy/Main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/Main.cc b/proxy/Main.cc
index e7ab10e..946e13d 100644
--- a/proxy/Main.cc
+++ b/proxy/Main.cc
@@ -1532,7 +1532,7 @@ main(int /* argc ATS_UNUSED */, const char **argv)
   chdir_root(); // change directory to the install root of traffic server.
 
   std::sort(argument_descriptions, argument_descriptions + countof(argument_descriptions),
-            [](ArgumentDescription &a, ArgumentDescription &b) { return 0 > strcasecmp(a.name, b.name); });
+            [](ArgumentDescription const &a, ArgumentDescription const &b) { return 0 > strcasecmp(a.name, b.name); });
 
   process_args(&appVersionInfo, argument_descriptions, countof(argument_descriptions), argv);
   command_flag  = command_flag || *command_string;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].