Applying shared_ptr template upcast fix to CSharp, adding CSharp test, and cleanup

This commit is contained in:
etse 2019-05-02 13:29:22 -04:00
commit 3359b4ccab
5 changed files with 25 additions and 21 deletions

View file

@ -1,7 +1,6 @@
// This is the cpp11_shared_ptr_template_upcast runtime testcase. It checks that SWIG generates the appropriate, upcasted shared_ptr type for a template instantiation deriving from a base class.
// In this case, the expected behavior is that given a cptr (underlying type shared_ptr<Printable<Derived> >), PrintableDerived_SWIGSmartPtrUpcast returns a cptr
// (underlying type std::shared_ptr< Derived >).
// This is the cpp11_shared_ptr_template_upcast runtime testcase. It checks that SWIG generates the appropriate upcasted shared_ptr type for a template instantiation deriving from a base class.
// For this case, the expected behavior is: given a cptr with underlying type shared_ptr<Printable<Derived> >, PrintableDerived_SWIGSmartPtrUpcast returns a cptr with
// underlying type std::shared_ptr< Derived >, where Printable<Derived> inherits from Derived.
import cpp11_shared_ptr_template_upcast.*;