Re: Another template/static member question

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

 



Harvey Chapman <hchapman-gcc-help@xxxxxxxx> writes:

> I'm trying to compile the code below and keep getting this error. I'm
> not exactly sure what to do to correct it. Is there something that I
> could read that would help? What is a non_lazy_ptr?

Your test case compiled fine when I tried it.

You didn't mention what version of gcc you are using, or what system
you are running it on.

non_lazy_ptr appears to be an Apple thing.  I don't know what it is
used for.

It's just a guess, but I would try interchanging these lines:

template class Singleton<SingleClass>;

template <class Type> Type * Singleton<Type>::ptr;

Ian

[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