size_type length; //< Length of the match (end-begin)
std::string str; //< The part of the string that matched
- operator bool() const { return match; }
+ explicit operator bool() const { return match; }
};
private:
/** Shorthand for the group() function. */
const Group &operator[](unsigned i) const { return group(i); }
- operator bool() const { return !empty(); }
+ explicit operator bool() const { return !empty(); }
};
} // namespace Msp