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

fix: resolve compilation error #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tomberek
Copy link

Not 100% sure why this is happening, but it fixes the error below:

In file included from include/cpp-semver.hpp:4,
                 from example/demo.cpp:1:
include/base/type.hpp:12:3: error: expected class-name before '{' token
   12 |   {
      |   ^
include/base/type.hpp: In constructor 'semver::semver_error::semver_error(const string&)':
include/base/type.hpp:13:62: error: expected class-name before '(' token
   13 |     semver_error(const std::string& msg) : std::runtime_error(msg) {}
      |                                                              ^
include/base/type.hpp:13:62: error: expected '{' before '(' token
include/base/type.hpp:13:37: error: unused parameter 'msg' [-Werror=unused-parameter]
   13 |     semver_error(const std::string& msg) : std::runtime_error(msg) {}
      |                  ~~~~~~~~~~~~~~~~~~~^~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:72: build/debug/no_pegtl/example/demo] Error 1

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