Fix code generation exclusion

This commit is contained in:
Jonathan Müller 2017-07-17 16:18:14 +02:00
commit 4e06906876
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@ namespace cppast
/// the other functions have no effects.
explicit operator bool() const noexcept
{
return options_ != exclude;
return !options_.is_set(exclude);
}
/// \returns The generation options.

View file

@ -157,7 +157,7 @@ struct foo{
generation_options do_get_options(const cpp_entity& e) override
{
if (e.name().front() == 'e')
return code_generator::exclude;
return code_generator::exclude | code_generator::declaration;
return {};
}
};