revive a casting code in the binding
This commit is contained in:
parent
0801df41dc
commit
6bbf53241d
1 changed files with 5 additions and 5 deletions
|
|
@ -254,11 +254,11 @@ PyObject* py_float_from(const double& val) {
|
|||
// casting
|
||||
template<class Td>
|
||||
struct typecast {
|
||||
// Unused
|
||||
// template<class Ts> static
|
||||
// Td* from(Ts* src) {
|
||||
// return llvm::dyn_cast<Td>(src);
|
||||
// }
|
||||
template<class Ts> static
|
||||
Td* from(Ts* src) {
|
||||
// check why this is only used in Python3
|
||||
return llvm::dyn_cast<Td>(src);
|
||||
}
|
||||
|
||||
static
|
||||
Td* from(void* src) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue