From 69a7b0d5bcb51f3b4cc787342c75a64b0a2d3455 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Wed, 31 Jan 2024 19:33:36 +0100 Subject: [PATCH] [core] Add `TString::size_type` member The `size_type` member is required by the helper macros in the new CPyCppyy that can be used to declare string converters. --- core/base/inc/TString.h | 1 + 1 file changed, 1 insertion(+) diff --git a/core/base/inc/TString.h b/core/base/inc/TString.h index 8181dc2563187..39b904f08b388 100644 --- a/core/base/inc/TString.h +++ b/core/base/inc/TString.h @@ -278,6 +278,7 @@ friend std::strong_ordering operator<=>(const TString &s1, const TString &s2) { enum EStripType { kLeading = 0x1, kTrailing = 0x2, kBoth = 0x3 }; enum ECaseCompare { kExact, kIgnoreCase }; static constexpr Ssiz_t kNPOS = ::kNPOS; + using size_type = Ssiz_t; TString(); // Null string explicit TString(Ssiz_t ic); // Suggested capacity