This revision was automatically updated to reflect the committed changes.
Closed by commit rL340320: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP: Fix
build with newer libstdc++ (authored by tstellar, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D51020
Files:
test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
Index:
test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
===================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
@@ -99,9 +99,9 @@
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;
}
};
Index: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
===================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
@@ -99,9 +99,9 @@
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;
}
};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits