[geos-devel] [GEOS] #638: Recommend a static_cast around assert strings

GEOS geos-trac at osgeo.org
Wed Feb 1 09:30:59 PST 2017


#638: Recommend a static_cast around assert strings
------------------------+---------------------------
 Reporter:  goatbar     |       Owner:  geos-devel@…
     Type:  defect      |      Status:  closed
 Priority:  major       |   Milestone:  3.7.0
Component:  Default     |     Version:  3.3.8
 Severity:  Unassigned  |  Resolution:  fixed
 Keywords:              |
------------------------+---------------------------

Comment (by strk):

 In [changeset:"4332" 4332]:
 {{{
 #!CommitTicketReference repository="" revision="4332"
 Add static_assert<bool> to strings inside of assert calls

 Allows compiling with -Wpointer-bool-conversion.

 Patch by Kurt Schwehr <schwehr at google.com>
 Closes #638
 }}}

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/638#comment:16>
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