revive a casting code in the binding

This commit is contained in:
Siu Kwan Lam 2013-08-28 13:55:38 -05:00
commit 6bbf53241d

View file

@ -254,11 +254,11 @@ PyObject* py_float_from(const double& val) {
// casting // casting
template<class Td> template<class Td>
struct typecast { struct typecast {
// Unused template<class Ts> static
// template<class Ts> static Td* from(Ts* src) {
// Td* from(Ts* src) { // check why this is only used in Python3
// return llvm::dyn_cast<Td>(src); return llvm::dyn_cast<Td>(src);
// } }
static static
Td* from(void* src) { Td* from(void* src) {