Dag Sverre Seljebotn wrote:
> int main() {
> int t;
> cout << TypeChar<typeof(t)>::value;
> }
>
> however I'm not sure if any tricks are possible in C to get something
> like this?
>
To be clear, C++ would then also allow this:
typedef int foo;
int main() {
foo t;
cout << TypeChar<typeof(t)>::value;
}
and so, one wouldn't need an "exact" foo ctypedef in Cython, one would
just use the template to map the type to the character when needed...
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev