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.