pugixml/src
Arseny Kapoulkine 5e64076af9 Adjust node_copy_tree to be more explicit about invariants
The loop traverses the source tree and simultaneously builds up a copy
of it at destination. Short of race conditions, this code is safe -
however, it's not obvious that dit stays inside the destination tree.

This change adds a few assertions to help enforce/document these
invariants. One particular subtlety is that dit can actually *become*
null after we exit out of the loop, but it's guaranteed to only do so
once sit goes back to sn.

This is only possible when doing a full document copy - for some reason
we weren't using this for that (in reset(xml_document)), but we are now.

Fixes #314.
2020-02-19 21:02:33 -08:00
..
pugiconfig.hpp Update version to 1.10 2019-09-11 21:09:50 -07:00
pugixml.cpp Adjust node_copy_tree to be more explicit about invariants 2020-02-19 21:02:33 -08:00
pugixml.hpp Custom precision (#300) 2019-09-22 08:42:41 -07:00