Fix implicit conversion from non-const IFileTree to const IFileTree.

This commit is contained in:
Mikaël Capelle
2020-10-25 12:58:37 +01:00
parent 8b703f2e4f
commit 138de736ef
+2
View File
@@ -87,8 +87,10 @@ BOOST_PYTHON_MODULE(mobase)
// Pointers:
bpy::register_ptr_to_python<std::shared_ptr<FileTreeEntry>>();
bpy::register_ptr_to_python<std::shared_ptr<const FileTreeEntry>>();
bpy::implicitly_convertible<std::shared_ptr<FileTreeEntry>, std::shared_ptr<const FileTreeEntry>>();
bpy::register_ptr_to_python<std::shared_ptr<IFileTree>>();
bpy::register_ptr_to_python<std::shared_ptr<const IFileTree>>();
bpy::implicitly_convertible<std::shared_ptr<IFileTree>, std::shared_ptr<const IFileTree>>();
// Containers:
utils::register_sequence_container<std::vector<int>>();