Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2017 15.8: build issue / FeatureSourceIndexNode.cpp #1187

Closed
remoe opened this issue Aug 17, 2018 · 2 comments
Closed

VS2017 15.8: build issue / FeatureSourceIndexNode.cpp #1187

remoe opened this issue Aug 17, 2018 · 2 comments

Comments

@remoe
Copy link
Contributor

remoe commented Aug 17, 2018

can't compile osgEarth with VS2017 15.8:

FeatureSourceIndexNode.cpp
vc\tools\msvc\14.15.26726\include\xmemory0(881):error C2440: 'initializing': cannot convert from 'std::pair<const _Kty,_Ty>' to '_Objty'

...
src\osgearthfeatures\featuresourceindexnode.cpp(102): note: see reference to function template instantiation 'void std::_Tree<std::_Tset_traits<_Kty,_Pr,_Alloc,false>>::insert<`anonymous-namespace'::KeyIter<osgEarth::Features::FeatureSourceIndexNode::FIDMap>>(_Iter,_Iter)' being compiled
        with
        [
            _Kty=osgEarth::Features::FeatureID,
            _Pr=std::less<osgEarth::Features::FeatureID>,
            _Alloc=std::allocator<osgEarth::Features::FeatureID>,
            _Iter=`anonymous-namespace'::KeyIter<osgEarth::Features::FeatureSourceIndexNode::FIDMap>
        ]

https://github.com/gwaldron/osgearth/blob/master/src/osgEarthFeatures/FeatureSourceIndexNode.cpp#L102

@remoe
Copy link
Contributor Author

remoe commented Aug 28, 2018

osgearth also doesn't compile with VS2017 15.8.1 without this fix.

gwaldron added a commit that referenced this issue Aug 28, 2018
@dwickeroth
Copy link

I just tried to compile osgearth version 2.9.0 with VS 15.9.12 and still ran into this error. Cherrypicking the commit from remoe solve the issue.

michael-ifad pushed a commit to ifad-ts/osgearth that referenced this issue Jul 3, 2020
gsrhodes added a commit to gsrhodes/osgEarth-2.7 that referenced this issue Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants