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
|
// 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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue