From 67702277e60a34bb3cd70691a8823d7ce528c8bf Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 17 Oct 2015 08:59:41 -0700 Subject: docs: Add a note about moving xpath_query --- docs/manual.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/manual.html') diff --git a/docs/manual.html b/docs/manual.html index d26f208..8f96633 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -3656,7 +3656,7 @@ While compiling expressions is fast, the compilation time can introduce a signif
-

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 C11 compiler (query objects are movable in C11).

You can create a query object with the constructor that takes XPath expression as an argument:

@@ -5607,7 +5607,7 @@ If exceptions are disabled, then in the event of parsing failure the query is in
-- cgit v1.2.3