C++ bindings: add back namespace specifier on isl object types (including ctx)
commit1f40bbf2fe599c489639b25f24853f6c5f4cd6db
authorSven Verdoolaege <sven@cerebras.net>
Wed, 7 Nov 2018 21:41:09 +0000 (7 13:41 -0800)
committerSven Verdoolaege <sven@cerebras.net>
Wed, 5 Dec 2018 08:52:14 +0000 (5 09:52 +0100)
treecdb3dba951e3d5acecd3c83b3c017b7d110bad42
parentee3c7f03c350a23976522c463569ffec90a1868b
C++ bindings: add back namespace specifier on isl object types (including ctx)

This commmit partially reverts isl-0.18-1068-g85eb4b7f (drop namespace
qualifier in generated C++ bindings, Tue Jun 12 22:40:21 2018 +0200).
The (then) "isl::" specifier was removed because it relied
on the nested "checked" namespace being inlined.
This commit used the "isl::" or "isl::checked::" specifier
depending on the bindings that are being generated.

The main purpose of this commit is to ensure that no ambiguity
is introduced when the get_ctx() method gets renamed to ctx()
by specifying the ctx type as isl::ctx or isl::checked::ctx.
An alternative would be to specify the type as "class ctx",
but this would require more changes to the code because
the same type is also used in contexts where the additional
"class" is not allowed, e.g., in the class declaration itself.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
interface/cpp.cc
interface/cpp.h