[Xapian-tickets] [Xapian] #806: Project does not compile on VS2019 with C++20 turned on

Xapian nobody at xapian.org
Thu Jul 7 23:39:25 BST 2022


#806: Project does not compile on VS2019 with C++20 turned on
--------------------------+--------------------------------------
 Reporter:  Mateusz Pusz  |             Owner:  Olly Betts
     Type:  defect        |            Status:  closed
 Priority:  normal        |         Milestone:  1.5.0
Component:  Other         |           Version:  1.4.16
 Severity:  normal        |        Resolution:  fixed
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Microsoft Windows
--------------------------+--------------------------------------
Changes (by Olly Betts):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:   => 1.5.0

Comment:

 With the changes I made before git master should build cleanly as C++20.

 From CI we know xapian-core 1.4.x builds out of the box with MSVC
 2015-2022, and the public API headers are already free of `using namespace
 std;` so building an application which uses xapian in C++20 mode should
 work fine and the only problem here is if you specifically tell the
 compiler to use C++20 mode when building xapian-core itself.  That's self-
 inflicted really, and the simple workaround is not to do that.  This would
 become more of an issue if/when there's an MSVC version which defaults to
 C++20, but even then specifying an older version explicitly would be an
 easy workaround, and I'd expect we'll have a new release series out well
 before then.

 > As above, a targetted patch to address this is welcome, but I'm not
 easily able to work on one as this just isn't a platform I use.

 This remains true, but there's been no follow-up or feedback in 18 months
 so I'm going to close this ticket and mark it as fixed in 1.5.0 (the
 version git master will become).  If someone wants to work on this we can
 reopen.
-- 
Ticket URL: <https://trac.xapian.org/ticket/806#comment:8>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list