Commit f978fa1
committed
RunTimeTyped : IECore::assertedStaticCast allow null source pointer
* use approach taken by boost polymorphic_downcast and compare source
pointer to casted pointer, this has added benefit of not compiling
if Target type cannot be converted to Source type so should detect
programming errors at compile time.1 parent c4d5cac commit f978fa1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments