Skip to content

Commit 72097e9

Browse files
committed
comments
1 parent 3359b4c commit 72097e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Examples/test-suite/cpp11_shared_ptr_template_upcast.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public:
6868
};
6969

7070
/*
71-
Contrived for this case (but valid for others, such as if Printable was to be a interface/abstract base class).
72-
Virtual inheritance exposes whether SWIGSmartPtrUpcast generated a correctly typed shared pointer of the upcasted class type - if the pointer type is incorrect, this will result in
73-
a segmentation fault (on Windows, this could manifest as undefined behavior) when trying to access any member inherited from T through a shared_ptr<Printable<T> >.
71+
Virtual inheritance is contrived for this case, but exposes whether SWIGSmartPtrUpcast generated a correctly typed shared pointer of the upcasted class type -
72+
if the pointer type is incorrect, this will result in a segmentation fault (on Windows, this could manifest as undefined behavior) when trying to access members
73+
inherited from T through a shared_ptr<Printable<T> >.
7474
*/
7575
template <class T> class Printable : virtual public T {
7676
public:

0 commit comments

Comments
 (0)