|
![](/i/fill.gif) |
On Sat, 17 May 2008 13:41:18 +0200, Warp <war### [at] tag povray org> wrote:
> Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
>> Your foo-bar example is ill-formed. The compiler can do whatever it
>> wants.
>
> How is it different from your example, which you gave earlier? Also you
> had a template function calling another template function, and the latter
> being specialized in the context of instantiating the former. That's
> exactly what I did.
The difference is that you are instantiating 'foo<int>' in more than one
place. When you do that, the instantiations must have the same meaning or
the program is ill-formed. In my example 'f<int>' is only instantiated
once. That example was intented only to demonstrate why an exported
template must be recompiled when code that uses it is changed.
--
FE
Post a reply to this message
|
![](/i/fill.gif) |