Do not use exceptions for missing tags, improvement in code simplicity

This commit is contained in:
Florent Le Coz
2014-04-11 23:06:13 +02:00
parent a20c60a0d8
commit f00f5c3ffb
4 changed files with 58 additions and 83 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ int main()
{
std::cout << stanza.to_string() << std::endl;
assert(stanza.get_name() == "stream_ns:stanza");
assert(stanza["b"] == "c");
assert(stanza.get_tag("b") == "c");
assert(stanza.get_inner() == "inner");
assert(stanza.get_tail() == "");
assert(stanza.get_child("stream_ns:child1") != nullptr);