Skip to content

Errors when building 2.12.0 on Visual Studio 2017 #257

Open
@madebr

Description

@madebr

Hello,

I'm trying to package ossim 2.12.0 for conan at conan-io/conan-center-index#2459

Using Visual Studio, building a static ossim fails with the following error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2666	'ossimString::operator !=': 2 overloads have similar conversions	ossim	C:\Users\maarten\.conan\data\ossim\2.12.0\_\_\build\5bdfed110172ecef3a963112a861792e242d368e\source_subfolder\src\base\ossimFilename.cpp	1132	
Error	C2666	'ossimString::operator ==': 4 overloads have similar conversions	ossim	C:\Users\maarten\.conan\data\ossim\2.12.0\_\_\build\5bdfed110172ecef3a963112a861792e242d368e\source_subfolder\src\support_data\ossimNitfRsmecbTag.cpp	266	

The 4 operator== overloads about which the compiler complains are:

   friend OSSIM_DLL bool operator==(const char* lhs, const ossimString& rhs);
   friend OSSIM_DLL bool operator==(const std::string& lhs, const ossimString& rhs);
   bool operator==(const ossimString& rhs) const;
   bool operator==(const char* rhs) const;

The 2 operator!= overloads about which the compiler complains are:

   bool operator!=(const ossimString& rhs) const;
   bool operator!=(const char* rhs) const;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions