[GRASS-dev] [GRASS GIS] #1765: variable length array error in r.terraflow with clang
GRASS GIS
trac at osgeo.org
Mon Oct 22 07:21:19 PDT 2012
#1765: variable length array error in r.terraflow with clang
-----------------------+----------------------------------------------------
Reporter: kyngchaos | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Compiling | Version: svn-develbranch6
Keywords: clang | Platform: MacOSX
Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
Comment(by glynn):
Replying to [ticket:1765 kyngchaos]:
> A bit of searching tells me that non-POD variable length arrays are not
part of the C++ spec, but supported as an extension in some compilers.
clang does not.
I suggest using std::vector instead; see attachment:empq.patch
PS: the "using namespace std" should be eliminated. It's a bad idea in
source files, but far worse in headers.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1765#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list