[QGIS-trac] Re: [Quantum GIS] #234: ISO C++ forbids casting between pointer-to-function and pointer-to-object

Quantum GIS qgis at qgis.org
Thu Aug 21 00:39:35 EDT 2008


#234: ISO C++ forbids casting between pointer-to-function and pointer-to-object
----------------------------------------------------+-----------------------
        Reporter:  mloskot                          |         Owner:  gsherman                
            Type:  enhancement                      |        Status:  new                     
        Priority:  minor: annoyance or enhancement  |     Milestone:  Version 1.0.0           
       Component:  Build/Install                    |       Version:  HEAD                    
      Resolution:                                   |      Keywords:  casting pointer function
Platform_version:  Ubuntu 6.06                      |      Platform:  Debian                  
        Must_fix:  No                               |   Status_info:  0                       
----------------------------------------------------+-----------------------
Comment (by mloskot):

 Tim,

 Continuing my previous comment, current SVN trunk does still thrown the
 same warning if compiled with my set of CXX flags:

 {{{
 trunk/qgis/src/core/qgsproviderregistry.cpp: In constructor
 'QgsProviderRegistry::QgsProviderRegistry(QString)':
 trunk/qgis/src/core/qgsproviderregistry.cpp:115: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp:119: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp:127: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp:128: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp:138: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp:146: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 trunk/qgis/src/core/qgsproviderregistry.cpp: In member function
 'QgsDataProvider* QgsProviderRegistry::getProvider(const QString&, const
 QString&)':
 trunk/qgis/src/core/qgsproviderregistry.cpp:353: warning: ISO C++ forbids
 casting between pointer-to-function and pointer-to-object
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/234#comment:12>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list