We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d78a332 + 78cf5f8 commit e2181bbCopy full SHA for e2181bb
1 file changed
docopt.cpp
@@ -535,7 +535,7 @@ class Tokens {
535
template <typename T>
536
std::vector<T*> flat_filter(Pattern& pattern) {
537
std::vector<Pattern*> flattened = pattern.flat([](Pattern const* p) -> bool {
538
- return dynamic_cast<T const*>(p);
+ return dynamic_cast<T const*>(p) != nullptr;
539
});
540
541
// now, we're guaranteed to have T*'s, so just use static_cast
0 commit comments