Wed, 21 Jan 2026 22:07:03 +0100
fixes #799 - missing return type in the C++ version of cx_strtok_next()
| CHANGELOG | file | annotate | diff | comparison | revisions | |
| docs/Writerside/topics/about.md | file | annotate | diff | comparison | revisions | |
| src/cx/string.h | file | annotate | diff | comparison | revisions |
--- a/CHANGELOG Wed Jan 21 22:03:49 2026 +0100 +++ b/CHANGELOG Wed Jan 21 22:07:03 2026 +0100 @@ -1,7 +1,7 @@ -Version 4.0.1 - 2025-12-31 +Version 4.0.1 - tbd -------------------------- - + * fixes compilation errors when using a C++ compiler and a high warning level Version 4.0.0 - 2025-12-31 --------------------------
--- a/docs/Writerside/topics/about.md Wed Jan 21 22:03:49 2026 +0100 +++ b/docs/Writerside/topics/about.md Wed Jan 21 22:07:03 2026 +0100 @@ -26,9 +26,9 @@ ## Changelog -### Version 4.0.1 - 2025-12-31 {collapsible="true"} +### Version 4.0.1 - preview {collapsible="true"} - +* fixes compilation errors when using a C++ compiler and a high warning level ### Version 4.0.0 - 2025-12-31 {collapsible="true"}
--- 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<cxstring*>(token));