From b997a61df6094d258db94393d378282e039ebe13 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 17 Aug 2018 16:00:52 -0700 Subject: [PATCH] Fix CLAMR build with newer libstdc++ --- MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h b/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h index 138704f..9db368d 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h @@ -99,9 +99,9 @@ struct malloc_plus_memory_entry { struct cmp_str { - bool operator()(char const *a, char const *b) + bool operator()(const string &a, const string &b) { - return strcmp(a, b) < 0; + return a.compare(b) < 0; } }; -- 1.8.3.1