www.digitalmars.com         C & C++   DMDScript  

c++.beta - Digital Mars takes into account template parameter *names* as if they were part of the signature

Sent of behalf of Gennaro Prota (problems with news-server).
Fails with 8.49.2. Comeau works.


Hi Walter,

when faced with the following simple program

  template <typename Integer> void f(Integer x);

  template <typename T> void f(T x)
  {
  }

  int main()
  {
    f(1);
  }

the compiler is deceived to think that the call in main is ambiguous.
This is a reduced test case for a failure affecting
boost::dynamic_bitset. You might also want to investigate why two of

memory error.

Thanks,
Gennaro.
Jul 23 2006