tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Formally make TinyXML-2 C++ 11

Open leethomason opened this issue 6 months ago • 5 comments

  • update code
  • update build

leethomason avatar May 24 '26 00:05 leethomason

Moving to C++11, could making all enums into enum class be considered, for improved type safety?

mikomikotaishi avatar May 24 '26 02:05 mikomikotaishi

Can this open road to https://github.com/leethomason/tinyxml2/pull/1074 as it's also requires C++ 11?

earnol avatar May 27 '26 12:05 earnol

Moving to C++11, could making all enums into enum class be considered, for improved type safety?

Good catch - thanks!

leethomason avatar May 29 '26 01:05 leethomason

Although enum class is a big change (potentially) for users of the library. Considering.

leethomason avatar May 29 '26 02:05 leethomason

If the library is going to be updated to C++11, wouldn't that already mean users from C++03 and lower would need to modernise?

Additionally, could full use of constexpr be considered for replacing const constants and macros?

mikomikotaishi avatar May 29 '26 13:05 mikomikotaishi