From 640e2a69fca2f67786c9393d6db9c583da0154ab Mon Sep 17 00:00:00 2001 From: Wawha Date: Tue, 23 Mar 2021 15:46:14 +0100 Subject: [PATCH] Fix compilation error with eastl::basic_string<>::npos and (clang 9.0). Need to be constexpr. --- include/EASTL/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/EASTL/string.h b/include/EASTL/string.h index 82816a42..6d45f5d4 100644 --- a/include/EASTL/string.h +++ b/include/EASTL/string.h @@ -294,7 +294,7 @@ namespace eastl typedef ptrdiff_t difference_type; typedef Allocator allocator_type; - static const size_type npos = (size_type)-1; /// 'npos' means non-valid position or simply non-position. + static const EA_CONSTEXPR size_type npos = (size_type)-1; /// 'npos' means non-valid position or simply non-position. public: // CtorDoNotInitialize exists so that we can create a constructor that allocates but doesn't