Skip to content

Commit

Permalink
Merge pull request #419 from Wawha/std-basic-string-npos-constexpr
Browse files Browse the repository at this point in the history
Fix compilation error with eastl::basic_string<>::npos and (clang 9.0). Need to be constexpr
  • Loading branch information
james-moran-ea authored Feb 10, 2022
2 parents ca6b871 + 640e2a6 commit 49f654e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/EASTL/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49f654e

Please sign in to comment.