O'Reilly logo
  • Nzo Liu thinks this is interesting:

Directory& tempDir()                // this replaces the tempDir object; it
{                                   // could be static in the Directory class

  static Directory td;              // define/initialize local static object
  return td;  ...