[GRASS-dev] Compiling r.viewshed and r.terraflow with C++11
wenzeslaus at gmail.com
Mon Dec 9 20:21:11 PST 2013
the r.viewshed and r.terraflow modules needs fix to compile with C++11. The
error: reference to 'is_empty' is ambiguous
error: reference to 'is_void' is ambiguous
The cause are the functions in modules which are named in the same way as
functions newly added in C++11. The problem is actually caused by the fact
that modules are using
using namespace std;
As explained by Glynn in  rewriting modules in the way that they don't
use `std` namespace in this way could be difficult.
So my question is, was this fixed in the time of ? It is not clear from
the discussion. If not, what is the right fix?
I suggest to put these functions into some namespace (I was not thinking
about name yet) and using these functions with a namespace. There is only
limited number of calls of these functions. Do you think it is a good idea?
Apparently, this issue needs to be fixed because on Mac OS X Mavericks it
is already an issue (C++11 is the default as predicted by Glynn in ).
Compile error should be reproducible with older GCC/clang by adding
 Grass SVN in Android, display issue,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the grass-dev