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

Error in make: ‘variant’ in namespace ‘std’ does not name a template type #7

Open
Baymax958 opened this issue Feb 7, 2023 · 0 comments

Comments

@Baymax958
Copy link

/usr/local/include/pangolin/geometry/geometry.h: At global scope:
/usr/local/include/pangolin/geometry/geometry.h:55:32: error: ‘variant’ in namespace ‘std’ does not name a template type
55 | using Attribute = std::variant<Image,Image<uint32_t>,Image<uint16_t>,Image<uint8_t>>;
| ^~~~~~~
/usr/local/include/pangolin/geometry/geometry.h:55:27: note: ‘std::variant’ is only available from C++17 onwards
55 | using Attribute = std::variant<Image,Image<uint32_t>,Image<uint16_t>,Image<uint8_t>>;
| ^~~
/usr/local/include/pangolin/geometry/geometry.h:57:31: error: ‘Attribute’ was not declared in this scope; did you mean ‘attribute’?
57 | std::map<std::string, Attribute> attributes;
| ^~~~~~~~~
| attribute
/usr/local/include/pangolin/geometry/geometry.h:57:40: error: template argument 2 is invalid
57 | std::map<std::string, Attribute> attributes;
| ^
/usr/local/include/pangolin/geometry/geometry.h:57:40: error: template argument 4 is invalid

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

1 participant