|
 |
Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
> On Sat, 17 May 2008 10:36:31 +0200, Warp <war### [at] tag povray org> wrote:
> > Sorry, I still don't understand this.
> >
> > I tried my foo-bar example making the bar() function a template which
> > was
> > specialized in one of the compilation units but not the other, and at
> > least
> > gcc still behave in the same way: When foo() was not inlined, only one
> > version of bar() was called: The specialized version was never called.
> 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.
--
- Warp
Post a reply to this message
|
 |