title: How to add constructors/destructors to an unnamed class?
body: <p>Is there a way to declare a constructor or a destructor in an unnamed class? Consider the following </p>
  
  <pre><code>void f()
  {
      struct {
          // some implementation
      } inst1, inst2;
  
      // f implementation - usage of instances
  }
  </code></pre>
  
  <p>Follow up question : The instances are ofcourse constructed (and destroyed) as any stack based object. What gets called? Is it a mangled name automatically assigned by the compiler? </p>