[Xapian-tickets] [Xapian] #799: Issue with enable-log option failing while building
Xapian
nobody at xapian.org
Thu Jan 2 20:05:19 GMT 2020
#799: Issue with enable-log option failing while building
--------------------------+-------------------------------
Reporter: Gaurav Arora | Owner: Olly Betts
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------------+-------------------------------
Comment (by Olly Betts):
Classes which don't have a `get_description()` method are handled in
`common/pretty.h`. Something like this (untested) should show them in the
debug log as their class name:
{{{
diff --git a/xapian-core/common/pretty.h b/xapian-core/common/pretty.h
index 1e0393399fa3..c459d3836893 100644
--- a/xapian-core/common/pretty.h
+++ b/xapian-core/common/pretty.h
@@ -280,6 +280,7 @@ operator<<(PrettyOStream<S> &ps, const
Xapian::VecCOW<T>& v)
{
namespace Xapian {
class ExpandDecider;
+ class KeyMaker;
class LatLongMetric;
class MatchDecider;
class Registry;
@@ -316,6 +317,7 @@ XAPIAN_PRETTY_AS_CLASSNAME(Xapian::Centroid)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::Cluster)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::ClusterSet)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::ExpandDecider)
+XAPIAN_PRETTY_AS_CLASSNAME(Xapian::KeyMaker)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::LatLongMetric)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::MatchDecider)
XAPIAN_PRETTY_AS_CLASSNAME(Xapian::Point)
}}}
`XAPIAN_PRETTY_AS_CLASSNAME(C)` is a macro which expands to an
`operator<<` overload for `const C&`.
Classes with `get_description()` are handled automatically via the
template in `common/output.h`.
--
Ticket URL: <https://trac.xapian.org/ticket/799#comment:4>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list