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: catching polymorphic type by value #1

Open
Ben-Miller0 opened this issue Apr 22, 2024 · 1 comment
Open

error: catching polymorphic type by value #1

Ben-Miller0 opened this issue Apr 22, 2024 · 1 comment

Comments

@Ben-Miller0
Copy link

I cannot compile this as I get the error
/home/benmiller/nds/bin2s/src/bin2s.cpp: In function ‘int main(int, char**)’: /home/benmiller/nds/bin2s/src/bin2s.cpp:220:18: error: catching polymorphic type ‘class args::Help’ by value [-Werror=catch-value=] 220 | } catch (args::Help) { | ^~~~ /home/benmiller/nds/bin2s/src/bin2s.cpp:224:29: error: catching polymorphic type ‘class args::ParseError’ by value [-Werror=catch-value=] 224 | } catch (args::ParseError e) { | ^ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/bin2s.dir/build.make:76: CMakeFiles/bin2s.dir/src/bin2s.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/bin2s.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

I ran the commands
cmake -B build cd build make

@Xtansia
Copy link
Owner

Xtansia commented Apr 23, 2024

@Ben-Miller0 This should now be fixed as of the latest commit, let me know if you hit any other issues

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

2 participants