[Xapian-tickets] [Xapian] #806: Project does not compile on VS2019 with C++20 turned on
Xapian
nobody at xapian.org
Tue Dec 22 19:39:51 GMT 2020
#806: Project does not compile on VS2019 with C++20 turned on
--------------------------+--------------------------------------
Reporter: Mateusz Pusz | Owner: Olly Betts
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: 1.4.17
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Microsoft Windows
--------------------------+--------------------------------------
Comment (by Olly Betts):
Thanks for reporting this.
The use of `mem_fun` I can fix, but I don't understand the `byte` issue.
The `std::byte` type was added in C++17, and we already addressed that in
C++ code in changeset:f527b61a65f259ce68b11ef9d89a959f5cf62a12 which
should be in 1.4.17, and indeed all releases for over 2 years:
{{{
$ git tag --contains f527b61a65f259ce68b11ef9d89a959f5cf62a12
v1.4.10
v1.4.11
v1.4.12
v1.4.13
v1.4.14
v1.4.15
v1.4.16
v1.4.17
v1.4.8
v1.4.9
}}}
There's one remaining use of `typedef unsigned char byte;` but that's in C
code, not C++. Even if that C code gets compiled as C++ there's no
`#include <cstddef>` or `using namespace std;` in that C code, so I can't
see how that's a problem.
Are you definitely seeing this with 1.4.17? If so, can you show a log of
the compiler errors you're getting, and also show the exact commands
you're using to configure and build.
--
Ticket URL: <https://trac.xapian.org/ticket/806#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list