diff -r d2a36d28c565 -r abb995453f15 src/cx/string.h --- a/src/cx/string.h Wed Jan 21 22:03:49 2026 +0100 +++ b/src/cx/string.h Wed Jan 21 22:07:03 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));