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: expected class-name before '(' token #487

Closed
Zarathustra101 opened this issue Oct 11, 2021 · 3 comments
Closed

error: expected class-name before '(' token #487

Zarathustra101 opened this issue Oct 11, 2021 · 3 comments

Comments

@Zarathustra101
Copy link

Got error message, when using library:

error: expected class-name before '(' token
   43 |     Throwable(const std::string &message) : std::runtime_error(message) {}

Solution:

add
#include <stdexcept>
in
include/throwable.h

@edhelas
Copy link

edhelas commented Apr 5, 2022

So #440 fixes it

@carlos-granados
Copy link

There is a maintained fork where a PR to fix this issue has been merged, you can find it here: https://github.com/fast-debug/PHP-CPP

@robocoder
Copy link
Contributor

Fixed in 2.4.0 (c2b36b9)

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

5 participants