summaryrefslogtreecommitdiff
path: root/docs/manual.adoc
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-17 08:59:41 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-17 08:59:41 -0700
commit67702277e60a34bb3cd70691a8823d7ce528c8bf (patch)
tree64a555c13fbff39b475f2248210e89cb9f86185b /docs/manual.adoc
parent384db6ba29a77559d1c232011ddf7838ef891169 (diff)
docs: Add a note about moving xpath_query
Diffstat (limited to 'docs/manual.adoc')
-rw-r--r--docs/manual.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/manual.adoc b/docs/manual.adoc
index c2cf9d2..63bc397 100644
--- a/docs/manual.adoc
+++ b/docs/manual.adoc
@@ -1880,7 +1880,7 @@ When you call `select_nodes` with an expression string as an argument, a query o
* You can use query objects to evaluate XPath expressions which result in booleans, numbers or strings;
* You can get the type of expression value via query object.
-Query objects correspond to `xpath_query` type. They are immutable and non-copyable: they are bound to the expression at creation time and can not be cloned. If you want to put query objects in a container, allocate them on heap via `new` operator and store pointers to `xpath_query` in the container.
+Query objects correspond to `xpath_query` type. They are immutable and non-copyable: they are bound to the expression at creation time and can not be cloned. If you want to put query objects in a container, either allocate them on heap via `new` operator and store pointers to `xpath_query` in the container, or use a C++11 compiler (query objects are movable in C++11).
[[xpath_query::ctor]]
You can create a query object with the constructor that takes XPath expression as an argument: