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

Add feature type #13

Closed
wants to merge 1 commit into from
Closed

Add feature type #13

wants to merge 1 commit into from

Conversation

jfirebaugh
Copy link
Contributor

@jfirebaugh jfirebaugh commented Apr 29, 2016

Fixes #8

@jfirebaugh
Copy link
Contributor Author

Anyone know how to work around this GCC error:

In file included from include/mapbox/geometry.hpp:10:0,
                 from tests/test.cpp:1:
include/mapbox/geometry/feature.hpp:21:19: error: declaration of ‘mapbox::geometry::feature<T>::geometry_type mapbox::geometry::feature<T>::geometry’ [-fpermissive]
     geometry_type geometry;
                   ^
In file included from include/mapbox/geometry.hpp:9:0,
                 from tests/test.cpp:1:
include/mapbox/geometry/geometry.hpp:30:8: error: changes meaning of ‘geometry’ from ‘struct mapbox::geometry::geometry<T>’ [-fpermissive]
 struct geometry : geometry_base<T>
        ^

According to this SO post, GCC might be correct to issue this warning. I would like to find a workaround rather than renaming the geometry member.

@jfirebaugh jfirebaugh closed this Apr 29, 2016
@jfirebaugh jfirebaugh mentioned this pull request Apr 29, 2016
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

Successfully merging this pull request may close these issues.

1 participant