tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Tip to users who wants to use modularized version (simple hack)

Open parkyere opened this issue 6 months ago • 0 comments

Although it is very comfortable to including TinyXML2 (just adding .h and cpp, and it's over),

Some users wanted to have a modularized version of TinyXML2.

There is simple hack to do it. (As it is unofficial, and essentially modifies nothing in logic, I do not post the code.)

Just add export module TinyXML2; in first line, then export namespace tinyxml2 in header file,

Then cut-paste entire cpp file in bottom of header file, and rename it to have module extension.

Works fine.

parkyere avatar Jul 03 '25 04:07 parkyere