[geos-devel] [GEOS] #638: Recommend a static_cast around assert strings
GEOS
geos-trac at osgeo.org
Tue Jan 31 13:32:30 PST 2017
#638: Recommend a static_cast around assert strings
------------------------+---------------------------
Reporter: goatbar | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.7.0
Component: Default | Version: 3.3.8
Severity: Unassigned | Resolution:
Keywords: |
------------------------+---------------------------
Comment (by mloskot):
To me, the cast looks, well, unfitting.
Why not to use conversion to bool, pretty idiomatic
{{{
assert(!!!"SHOULD NEVER GET HERE");
}}}
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/638#comment:11>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list