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

VS 2019 Warning C26812 #51

Open
rchalamala opened this issue Jan 5, 2020 · 2 comments
Open

VS 2019 Warning C26812 #51

rchalamala opened this issue Jan 5, 2020 · 2 comments

Comments

@rchalamala
Copy link

The enum type 'boost::system::errc::errc_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Can the error code be converrted to enum class?

@ayush0x00
Copy link

You might be using enum EnumName {option1,option2}. With C++ 11, enum is being destined to be used as class for security reasons.
Try using enum class EnumName {option1,option2}

@pdimov
Copy link
Member

pdimov commented Aug 30, 2020

Boost.System supports C++03, and enum class requires 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

3 participants