diff -r dee2ca687a14 -r 0db713dc8590 ucx/cx/string.h --- a/ucx/cx/string.h Fri Jan 16 11:56:17 2026 +0100 +++ b/ucx/cx/string.h Wed Jan 21 20:12:59 2026 +0100 @@ -1335,10 +1335,10 @@ bool cx_strtok_next_(CxStrtokCtx *ctx, cxstring *token); #ifdef __cplusplus -CX_CPPDECL cx_strtok_next(CxStrtokCtx *ctx, cxstring *token) { +CX_CPPDECL bool cx_strtok_next(CxStrtokCtx *ctx, cxstring *token) { return cx_strtok_next_(ctx, token); } -CX_CPPDECL cx_strtok_next(CxStrtokCtx *ctx, cxmutstr *token) { +CX_CPPDECL bool cx_strtok_next(CxStrtokCtx *ctx, cxmutstr *token) { // Note: this is actually UB - fixed with start_lifetime_as() in C++23 // but it works on all supported platforms return cx_strtok_next_(ctx, reinterpret_cast(token));