message & friends: make formattable
So we can easily debug-print them.
This commit is contained in:
@ -109,7 +109,7 @@ QueryMatch::has_flag(QueryMatch::Flags flag) const
|
||||
return any_of(flags & flag);
|
||||
}
|
||||
|
||||
inline std::ostream&
|
||||
static inline std::ostream&
|
||||
operator<<(std::ostream& os, QueryMatch::Flags mflags)
|
||||
{
|
||||
if (mflags == QueryMatch::Flags::None) {
|
||||
@ -348,6 +348,13 @@ private:
|
||||
QueryMatches& query_matches_;
|
||||
};
|
||||
|
||||
|
||||
static inline auto
|
||||
format_as(const QueryResultsIterator& it)
|
||||
{
|
||||
return it.path().value_or("<no path>");
|
||||
}
|
||||
|
||||
constexpr auto MaxQueryResultsSize = std::numeric_limits<size_t>::max();
|
||||
|
||||
class QueryResults {
|
||||
|
||||
Reference in New Issue
Block a user