Re: Template type usage from base classes

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

 



Hi Michael,

Try this...

template<
  size_t sizeValue
  >
class Derived<sizeValue, int> : public Base<sizeValue, int>
{
public:
  Derived() : Base<sizeValue, typename Base<sizeValue, int>::val_t>(1)
  {
  }
};

Microsoft's compiler is in error, it should not accept your non-compliant
code.

HTH,
--Eljay


[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