- Use dynamic_cast anyway, since static_cast doesn't play well
with multiple inheritance git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1197 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
5391aa12da
commit
4472ae0183
|
@ -99,7 +99,7 @@ namespace sgpem
|
||||||
return dynamic_cast<To&>(obj);
|
return dynamic_cast<To&>(obj);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
return static_cast<To&>(obj);
|
return dynamic_cast<To&>(obj);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue