Brad ArantandClaude Sonnet 5 5b6d4ea8ab Fix ambiguous MString << JString::Proxy overload resolution
JString::Proxy offers several implicit conversion operators (ZString,
MString, std::string, double, bool) so a single $[...]-style access can
be used wherever any of those types is expected. That flexibility made
"MString << Proxy" genuinely ambiguous: operator ZString() and
operator MString() (via its own implicit upcast to ZString) both satisfy
MString::operator<<(ZString), and operator double()/operator bool() both
satisfy MString::operator<<(int) via a standard numeric conversion, so
the compiler had no basis to prefer one conversion path over another.

Fixed the same way Proxy already solves this exact problem for
std::cout << proxy - a dedicated friend operator<<(MString&, const
Proxy&) that needs no conversion at all, so it's always the preferred
candidate. Verified by actually running testing/jstring_test.cpp (not
just compiling it) - the line that used to fail to compile now correctly
prints "this is a test: this is a comment".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-23 15:11:56 -07:00
2023-10-06 18:32:17 +00:00
2022-01-24 14:03:58 -08:00
2024-07-08 18:31:57 -07:00
2025-02-06 14:34:11 -08:00
2025-02-06 14:34:11 -08:00
2022-05-23 12:51:44 -07:00
2022-05-23 12:51:44 -07:00
2023-03-10 12:55:08 -08:00
2024-12-23 11:15:53 -08:00
2024-12-23 13:00:22 -08:00
2025-03-11 07:34:17 -07:00
2025-03-11 07:34:17 -07:00
2025-03-11 07:34:17 -07:00
2025-03-11 16:59:16 -07:00
2022-01-24 14:03:58 -08:00
2022-01-24 14:03:58 -08:00
2025-03-12 09:30:56 -07:00
2025-03-11 16:59:16 -07:00
2025-03-11 07:34:17 -07:00
2025-12-04 17:04:55 -08:00
2025-12-04 17:04:55 -08:00
2023-10-05 17:57:01 -07:00
2019-09-13 10:29:36 -07:00
2021-07-23 11:44:36 -07:00
2025-12-09 08:46:33 -08:00
2025-12-04 17:04:55 -08:00
2025-12-04 16:40:11 -08:00
S
Description
This repository contains the CoreUtils library. CoreUtils provides support for ServerCore, JetCore and other subsystem libraries used in higher functions.
33 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 97.8%
Makefile 1.9%
Shell 0.3%