[Xapian-tickets] [Xapian] #805: Missing #include <limits>

Xapian nobody at xapian.org
Wed Nov 4 11:32:28 GMT 2020


#805: Missing #include <limits>
---------------------------+-------------------------
        Reporter:  stac47  |      Owner:  Olly Betts
            Type:  defect  |     Status:  new
        Priority:  normal  |  Milestone:
       Component:  Other   |    Version:  1.4.17
        Severity:  normal  |   Keywords:  Compilation
      Blocked By:          |   Blocking:
Operating System:  Linux   |
---------------------------+-------------------------
 Hello,
 Compiling with the latest gcc (11), I have now the following error:

 api/omdocument.cc: In member function 'bool
 OmDocumentTerm::add_position(Xapian::termcount, Xapian::termpos)':
 api/omdocument.cc:303:67: error: incomplete type
 'std::numeric_limits<unsigned int>' used in nested name specifier
   303 |             if (rare(new_split >
 numeric_limits<decltype(split)>::max())) {
 ...

 Patch attached.

 Regards,
 Stac47
 Regards
-- 
Ticket URL: <https://trac.xapian.org/ticket/805>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list