How to get the type of $null?

Lindley French <[email protected]> Sun, 17 Oct 2021 09:15:08 -0700
Newsgroups gmane.comp.programming.swig
Message-ID <CALwtg06uAau64ibtORaTtJ+-i6eDTaL1DxKA=FVOEnL_nfb9Aw@mail.gmail.com>
I'd like to retrieve the eventual return type of the function, e.g. the
thing that determines whether $null maps to 0 or nothing.

I tried decltype($null) but that doesn't work when $null is nothing, e.g.
decltype() is ill-formed.

I'm trying to call a sub-typemap within a lambda and I need the return type
of the lambda to work out. I could make it work with just a scope block
instead of a lambda, but that's not as clean.

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user