title: Implementing decltype in C++98
body: <p>I was wondering if there is a way for implementing the C++11 operator <code>decltype</code> using just C++98 features.</p>
  
  <p>I mean something like</p>
  
  <pre><code>template&lt;class Func&gt;
  struct decl_type{
      typedef Func() type;
  };
  </code></pre>
  
  <p>Obviously, my code does not compile.</p>