R
Roshan Naik
typedef int foo ( foo ); // foo is a pointer-to-function type that takes
another foo as argument and returns an int
I need to achieve the above effect somehow. This is not accepted by any
compiler I have tried, even though I cant spot anything in the standard that
restricts it.
Is there a way to achieve this typedefintion using metaprogramming ? I
noticed that boost::variant does some metaprogramming tricks to allow
variants to be contained in variants. But it is unclear to me how that is
acheived, also that problem _may_ not be exactly the same as this.
-Roshan Naik
another foo as argument and returns an int
I need to achieve the above effect somehow. This is not accepted by any
compiler I have tried, even though I cant spot anything in the standard that
restricts it.
Is there a way to achieve this typedefintion using metaprogramming ? I
noticed that boost::variant does some metaprogramming tricks to allow
variants to be contained in variants. But it is unclear to me how that is
acheived, also that problem _may_ not be exactly the same as this.
-Roshan Naik