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

"std::string_view" is not available in C++11 #77

Open
halfTree-dev opened this issue Nov 20, 2024 · 0 comments
Open

"std::string_view" is not available in C++11 #77

halfTree-dev opened this issue Nov 20, 2024 · 0 comments

Comments

@halfTree-dev
Copy link

My C++ dev environment is MinGW 8.0.1, CMake 3.31, C++11 standard. Things goes wrong when I imported the guid.hpp as head file.
In guid.hpp, Line 55, which uses a class called "string_view" is only available in C++17 or higher version.

	explicit Guid(const std::array<unsigned char, 16> &bytes);
	explicit Guid(std::array<unsigned char, 16> &&bytes);

	explicit Guid(std::string_view fromString);
	Guid();

This should be mentioned in the README, so we could prepare a proper environment for this.
Anyway, what should I do if I want to use the library in C++11?

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