RE: template instantiation and anonymous namespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There's still a problem with the template parameters. Let me give the relevant class one last try with escapes:

template<typename ObjectT=Dummy>
class Singleton {
  static ObjectT* object;
public:
  static ObjectT& Instance() {
    if (!object)
      object = new ObjectT();
    return *object; } };

template<typename ObjectT>
ObjectT* Singleton::object = 0;




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux