summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-24 21:46:50 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:21:15 +0100
commit3efbc8af3f71d47faaa38f9e20092bcfa08c3713 (patch)
tree44b2b3a8847c13d7a005a5ebea71956276820527 /test
parent8f1f5db2b193fe1db7eeabda2a7b3eee03dde886 (diff)
Allow building with libxml++-4.0 and C++17.
Diffstat (limited to 'test')
-rw-r--r--test/test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index d384bdfa..6a359aeb 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -122,7 +122,7 @@ check_xml (xmlpp::Element* ref, xmlpp::Element* test, vector<string> ignore_tags
BOOST_CHECK_EQUAL (ref->get_name (), test->get_name ());
BOOST_CHECK_EQUAL (ref->get_namespace_prefix (), test->get_namespace_prefix ());
- if (find(ignore_tags.begin(), ignore_tags.end(), ref->get_name()) != ignore_tags.end()) {
+ if (find(ignore_tags.begin(), ignore_tags.end(), std::string(ref->get_name())) != ignore_tags.end()) {
return;
}