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

compile error #2

Open
gvsurenderreddy opened this issue Sep 3, 2020 · 0 comments
Open

compile error #2

gvsurenderreddy opened this issue Sep 3, 2020 · 0 comments

Comments

@gvsurenderreddy
Copy link

g++ -lz -o unscrew unscrew.cpp
unscrew.cpp: In function ‘T swap_endian(T)’:
unscrew.cpp:23: error: there are no arguments to ‘static_assert’ that depend on a template parameter, so a declaration of ‘static_assert’ must be available
unscrew.cpp:23: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
unscrew.cpp: In function ‘T swap_endian(T) [with T = short int]’:
unscrew.cpp:159: instantiated from here
unscrew.cpp:23: error: ‘static_assert’ was not declared in this scope

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