"examples/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "ba0de4b129ffe6469d95291f36c2c50b6fd0fb92"
Commit feae9e5c authored by Ralf W. Grosse-Kunstleve's avatar Ralf W. Grosse-Kunstleve
Browse files

Fixing oversight.

parent 3c59fd30
...@@ -549,7 +549,7 @@ struct smart_holder_type_caster<std::shared_ptr<T const>> : smart_holder_type_ca ...@@ -549,7 +549,7 @@ struct smart_holder_type_caster<std::shared_ptr<T const>> : smart_holder_type_ca
static handle static handle
cast(const std::shared_ptr<T const> &src, return_value_policy policy, handle parent) { cast(const std::shared_ptr<T const> &src, return_value_policy policy, handle parent) {
return type_caster<std::shared_ptr<T>>::cast( return smart_holder_type_caster<std::shared_ptr<T>>::cast(
std::const_pointer_cast<T>(src), // Const2Mutbl std::const_pointer_cast<T>(src), // Const2Mutbl
policy, policy,
parent); parent);
...@@ -610,7 +610,7 @@ struct smart_holder_type_caster<std::unique_ptr<T const>> : smart_holder_type_ca ...@@ -610,7 +610,7 @@ struct smart_holder_type_caster<std::unique_ptr<T const>> : smart_holder_type_ca
static constexpr auto name = _<std::unique_ptr<T const>>(); static constexpr auto name = _<std::unique_ptr<T const>>();
static handle cast(std::unique_ptr<T const> &&src, return_value_policy policy, handle parent) { static handle cast(std::unique_ptr<T const> &&src, return_value_policy policy, handle parent) {
return type_caster<std::unique_ptr<T>>::cast( return smart_holder_type_caster<std::unique_ptr<T>>::cast(
std::unique_ptr<T>(const_cast<T *>(src.release())), // Const2Mutbl std::unique_ptr<T>(const_cast<T *>(src.release())), // Const2Mutbl
policy, policy,
parent); parent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment