Closed PeterSommerlad closed 6 years ago
given:
struct on_exit_policy { bool execute_{ true }; void release() noexcept { execute_ = false; } bool should_execute() noexcept // const suggested { return execute_; } };
adding const should leave code in compilable shape.
struct on_exit_policy { bool execute_{ true }; void release() noexcept { execute_ = false; } bool should_execute() const noexcept return execute_; } };
constificator 1.8.0.201711101523
Issue with CDT Parser. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=527396.
Expected Behavior
given:
adding const should leave code in compilable shape.
Actual Behavior
Cevelop Version, Operating System and Compiler
constificator 1.8.0.201711101523