mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 08:02:00 +00:00
Fix compatibility with catch v2
Catch v2 changed the `run(...)` signature to take a `char *argv[]`, arguing partly that technically a `char *argv[]` type is the correct `main()` signature rather than `const char *argv[]`. Dropping the `const` here doesn't appear to cause any problems with catch v1 (tested against both the cmake-downloaded 1.9.3 and Debian's 1.12.1 package) so we can follow suit.
This commit is contained in:
parent
a1be85f1e3
commit
f7b27efbc9
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
namespace py = pybind11;
|
namespace py = pybind11;
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
py::scoped_interpreter guard{};
|
py::scoped_interpreter guard{};
|
||||||
auto result = Catch::Session().run(argc, argv);
|
auto result = Catch::Session().run(argc, argv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user