summaryrefslogtreecommitdiff
path: root/tests/test_xpath_api.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-06 11:49:10 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-06 11:49:10 -0800
commitaa117cce42d75d58e47c8d584fec7ace5693df48 (patch)
tree1ae021c96c50047dd08a767089fb670239dddc13 /tests/test_xpath_api.cpp
parentb3fc28d177dc1d5bcf937d3e7add77caff5a34f8 (diff)
Refactor move semantics support detection
Do it in one place and set PUGIXML_HAS_MOVE if it's available.
Diffstat (limited to 'tests/test_xpath_api.cpp')
-rw-r--r--tests/test_xpath_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index ef7d4b2..9aa1a34 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -418,7 +418,7 @@ TEST(xpath_api_empty)
CHECK(!q.evaluate_boolean(c));
}
-#if __cplusplus >= 201103
+#ifdef PUGIXML_HAS_MOVE
TEST_XML(xpath_api_nodeset_move_ctor, "<node><foo/><foo/><bar/></node>")
{
xpath_node_set set = doc.select_nodes(STR("node/bar/preceding::*"));