Please review: VS 2015 migration - open source provider

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Please review: VS 2015 migration - open source provider

Karsten Winter

Hi all

 

I’m currently migrating the projects to Visual Studio 2015.

Some errors occur with the new compiler for which I would like to get a review for the solution. The 4th part is about FDO open source provider.

 

Shape:

 

Providers\SHP\Src\Provider\stdafx.h

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning

Solution:

-> use "unordered_map" instead of "hash_map"

 

Providers\SHP\Src\ShpRead\ShapeFile.cpp

error C3861: 'max': identifier not found

Solution:

-> #include <algorithm>

 

SDF:

 

Providers\SDF\Src\Utils\PropertyIndex.h

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning

Solution:

-> remove include of not required <hash_map>

 

Providers\SDF\Src\Provider\BinaryReader.h

Providers\SDF\Src\Provider\ExInfoDb.h

Providers\SDF\Src\Provider\SchemaDb.h

Providers\SDF\Src\Provider\SdfConnection.cpp

Providers\SDF\Src\Provider\SdfConnection.h

Providers\SDF\Src\Provider\SdfExtHashMap.h

Providers\SDF\Src\Provider\SdfSchemaMergeContext.cpp

Providers\SDF\Src\Provider\SdfSchemaMergeContext.h

Providers\SDF\Src\Provider\TableReformatter.h

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning

Solution:

-> use "unordered_map" instead of "hash_map" in several classes

 

WFS:

 

Utilities\OWS\stdafx.h

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning

Solution:

-> remove include of no required <hash_map>

 

ArcSDE:

 

Providers\ArcSDE\Src\Provider\stdafx.h

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning

Solution:

-> remove include of no required <hash_map>

 

SQLite:

 

Providers\sqlite\src\spatialindex\sltgeomutils.h

error C2039: 'min': is not a member of 'std'

Solution:

-> #include <algorithm>

 

providers\sqlite\src\provider\stringutil.h

error C2039: 'max': is not a member of 'std'

Solution:

-> #include <algorithm>

 

 

Best regards

Karsten


_______________________________________________
fdo-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-internals

Providers_Shape.patch (1006 bytes) Download Attachment
Providers_SDF.patch (9K) Download Attachment
Utilities_OWS_stdafx.h.patch (600 bytes) Download Attachment
Providers_ArcSDE_Src_Provider_stdafx.h.patch (362 bytes) Download Attachment
Providers_SQLite.patch (1K) Download Attachment