diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index a00ca9e..4b16fb9 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -772,11 +772,17 @@ template struct DowncastReturn { template - struct apply { - static_assert(std::is_convertible_v>); + struct apply_; + + template + struct apply_> { + static_assert(std::is_convertible_v, std::shared_ptr>); using type = DowncastConverter; }; + template + using apply = apply_>; + }; @@ -927,7 +933,7 @@ BOOST_PYTHON_MODULE(mobase) Functor_converter const&)>(); // FileTreeEntry Scope: - auto fileTreeEntryClass = bpy::class_, boost::noncopyable>("FileTreeEntry", bpy::no_init); + auto fileTreeEntryClass = bpy::class_("FileTreeEntry", bpy::no_init); { bpy::scope scope = fileTreeEntryClass;