Self referential type

Posted by pythonic metaphor on Stack Overflow See other posts from Stack Overflow or by pythonic metaphor
Published on 2010-06-15T20:13:47Z Indexed on 2010/06/15 20:22 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

What type T makes the following code compilable?

T f(){ return &f; }

I'd prefer a C answer, but I marked the question as C and C++ in case there is only an answer using templates.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c