template instantiation logic ?
Gabriel Dos Reis
Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Sun Feb 8 11:19:00 GMT 1998
>>>>> ëMarcû, Marc ESPIE <Marc.Espie@liafa.jussieu.fr> wrote:
[...]
Marc> The strange thing is that, in order to get egcs to compile my code,
Marc> instantiating the template as
Marc> template Vector<double>& Vector<double>::operator=(Random_distribution &);
Marc> is not enough !
Is it the *compiler* or the *loader* who complains ?
Marc> I need to use:
Marc> template Vector<double>&
Marc> Vector<double>::operator=(Gaussian_random_distribution &);
Marc> Is this normal behavior ?
hum... I fail to find an explanation. However IMHO the function object
generate<>(0 from STL should help you much to achive what you are
doing. I would be insterested in seeing your code.
-- Gaby
"One reason that life is complex is that it has a
real part and imaginary part." -- Andrew Koenig
More information about the Gcc
mailing list