Skip to content

Commit

Permalink
Update context.cpp to comply with pybind11 2.0+ docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored Apr 6, 2024
1 parent f8aeced commit 3e4cdff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const char *module_header = R"_(
#ifndef BINDER_PYBIND11_TYPE_CASTER
#define BINDER_PYBIND11_TYPE_CASTER
{2}
PYBIND11_DECLARE_HOLDER_TYPE(T, T*)
PYBIND11_DECLARE_HOLDER_TYPE(T, T*, false)
{3}
#endif
Expand Down Expand Up @@ -437,7 +437,7 @@ void Context::generate(Config const &config)

string const holder_type = Config::get().holder_type();

string shared_declare = "PYBIND11_DECLARE_HOLDER_TYPE(T, "+holder_type+"<T>)";
string shared_declare = "PYBIND11_DECLARE_HOLDER_TYPE(T, "+holder_type+"<T>, false)";
string shared_make_opaque = "PYBIND11_MAKE_OPAQUE("+holder_type+"<void>)";

string const pybind11_include = "#include <" + Config::get().pybind11_include_file() + ">";
Expand Down

0 comments on commit 3e4cdff

Please sign in to comment.