From c1a4ff7b20ddde59889ffbd6d5d5f986da24f6d4 Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Tue, 31 Oct 2017 18:16:12 +0000 Subject: [PATCH] Centos/RHEL - remove usage of constexpr since libc++ doesn't enable ctor for constexpr pair in C++11 --- hipamd/src/hip_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_module.cpp b/hipamd/src/hip_module.cpp index dee69e7ba0..da889a2e03 100644 --- a/hipamd/src/hip_module.cpp +++ b/hipamd/src/hip_module.cpp @@ -217,7 +217,7 @@ namespace using namespace ELFIO; using namespace std; - static constexpr pair r{0, 0}; + static const pair r{0, 0}; for (auto i = 0u; i != section.get_symbols_num(); ++i) { // TODO: this is boyscout code, caching the temporaries