-
Hello
if I change something in var "expected" (for ex : replace first node "anomalies" by node "dummy"), it finds the difference, in the file although it was not supposed to read.
Can you help me and explain how pugi lib can in the same time say "file not found" (return 1) and really read the content in this "file not found" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
sorry please read "expected" in place of "attendu" in the second code quoted part of my message |
Beta Was this translation helpful? Give feedback.
-
pugi::xml_parse_result is a struct. You're looking for either
or
What you see is the implicit conversion of result object to a boolean, and a subsequent attempt to compare that boolean (true) to status_ok. |
Beta Was this translation helpful? Give feedback.
pugi::xml_parse_result is a struct. You're looking for either
or
What you see is the implicit conversion of result object to a boolean, and a subsequent attempt to compare that boolean (true) to status_ok.