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

GEOS geos-trac at osgeo.org
Sat Apr 8 09:22:47 PDT 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 Sandro Santilli <strk@…>):

 In [changeset:"9c7b8936d51ceb4f25935a14aecfe3a640701beb/git" 9c7b893/git]:
 {{{
 #!CommitTicketReference repository="git"
 revision="9c7b8936d51ceb4f25935a14aecfe3a640701beb"
 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

 git-svn-id: http://svn.osgeo.org/geos/trunk@4331 5242fede-
 7e19-0410-aef8-94bd7d2200fb
 }}}

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