From 732d5aab51628dad41a4f9c70c7b7aab5401e6d7 Mon Sep 17 00:00:00 2001
From: "Vladimir V. Kisil" <kisilv@maths.leeds.ac.uk>
Date: Sun, 10 Jul 2016 09:34:40 +0100
Subject: [PATCH] Mention name clash std::function (C++11) and GiNaC::function
 in tutorial.

Signed-off-by: Vladimir V. Kisil <kisilv@maths.leeds.ac.uk>
---
 doc/tutorial/ginac.texi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi
index b69455d..4af5b0a 100644
--- a/doc/tutorial/ginac.texi
+++ b/doc/tutorial/ginac.texi
@@ -1832,6 +1832,16 @@ point number of class @code{numeric} you should call
 @code{sin(1).evalf()} except that the latter will return a numeric
 wrapped inside an @code{ex}.
 
+Note also a name clash about @code{std::function} (new since C++11)
+and this class @code{GiNaC::function}. This need to be disambiguate
+manually in the code like this:
+
+@example
+	symbol x("x");
+	ex a=exp(x);
+	cout << is_a<symbol>(x) << endl; // ->  1
+	cout << is_a<GiNaC::function>(a) << endl; // -> 1
+@end example
 
 @node Relations, Integrals, Mathematical functions, Basic concepts
 @c    node-name, next, previous, up
-- 
2.8.1

