|
Boost : |
From: Gennadiy Rozental (gennadiy_at_[hidden])
Date: 2002-09-08 12:02:18
> FWIW, the correct specialization gets instantiated and compiled. It is >
actually a name mangling problem. With vc6 name mangling the template
> arguments are not part of the mangled name. As a result the linker can not
> differentiate between foo<int>() and foo<double>().
Thanks, I did not know this.
> The usual workaround is
> to do something like this.
>
> template <class T>
> void
> foo(T* = 0) {}
I use to do either like this or use class specialization.
>
> --Thomas
>
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk