diff options
Diffstat (limited to 'dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-cuda11.6-compile-fix.patch')
| -rw-r--r-- | dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-cuda11.6-compile-fix.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-cuda11.6-compile-fix.patch b/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-cuda11.6-compile-fix.patch deleted file mode 100644 index 28347d489c17..000000000000 --- a/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-cuda11.6-compile-fix.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/absl/strings/internal/string_constant.h -+++ b/absl/strings/internal/string_constant.h -@@ -35,12 +35,18 @@ namespace strings_internal { - // below. - template <typename T> - struct StringConstant { -+ private: -+ static constexpr bool ValidateConstant(absl::string_view view) { -+ return view.empty() || 2 * view[0] != 1; -+ } -+ -+public: - static constexpr absl::string_view value = T{}(); - constexpr absl::string_view operator()() const { return value; } - - // Check to be sure `view` points to constant data. - // Otherwise, it can't be constant evaluated. -- static_assert(value.empty() || 2 * value[0] != 1, -+ static_assert(ValidateConstant(value), - "The input string_view must point to constant data."); - }; - |
