POV-Ray : Newsgroups : povray.off-topic : A question about Java generics (not a flame) : Re: A question about Java generics (not a flame) Server Time
7 Sep 2024 21:12:31 EDT (-0400)
  Re: A question about Java generics (not a flame)  
From: Fredrik Eriksson
Date: 10 May 2008 16:48:45
Message: <op.uayhfiwh7bxctx@e6600.bredbandsbolaget.se>
On Sat, 10 May 2008 22:05:53 +0200, Darren New <dne### [at] sanrrcom> wrote:
> OK. So the linker is doing duplicate-code removal. It also would seem to  
> assume that all your object code is compiled with the same template  
> source code? Or does it actually look at the object code to make sure  
> it's the same?

It must be the same, or the program is ill-formed.


> I.e., if I compile A.cpp that includes T.chh to instantiate  
> xyz:vector<long>, and then I edit T.chh and then compile B.cpp that  
> instantiates xyz:vector<long> but that now generated different code,  
> does the linker carry around both versions of the object code?

If you change T.chh, then A.cpp - and any other source file that includes  
T.chh - must be recompiled.


-- 
FE


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.