Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

MSVC 2017: Error C2440 #36

Open
Open

Description

@thomasreiser

When trying to compile geojson_impl.hpp with Visual Studio 2017 (64 bit), I am getting the following errors:

screenshot from 2019-02-24 13-00-39

1>mapbox/geojson_impl.hpp(113): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(115): error C2440: 'return': cannot convert from 'bool' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(115): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(117): error C2440: 'return': cannot convert from 'bool' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(117): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(119): error C2440: 'return': cannot convert from 'mapbox::geojson::prop_map' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(119): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(121): error C2440: 'return': cannot convert from 'Cont' to 'mapbox::feature::value'
1>        with
1>        [
1>            Cont=std::vector<mapbox::feature::value,std::allocator<mapbox::feature::value>>
1>        ]
1>mapbox/geojson_impl.hpp(121): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(123): error C2440: 'return': cannot convert from 'std::string' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(123): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(127): error C2440: 'return': cannot convert from 'uint64_t' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(127): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(129): error C2440: 'return': cannot convert from 'int64_t' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(129): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>mapbox/geojson_impl.hpp(130): error C2440: 'return': cannot convert from 'double' to 'mapbox::feature::value'
1>mapbox/geojson_impl.hpp(130): note: No constructor could take the source type, or constructor overload resolution was ambiguous```

Activity

  1. dpmcmlxxvi commented on Aug 26, 2019

    @dpmcmlxxvi

    Same error also present in MSVC 2019.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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