R
Rahul
Hi Everyone,
I was looking at the link,
http://www.comeaucomputing.com/4.0/docs/userman/export.html
and it looks like the basic purpose of exporting templates is make
sure that they are visible in other compilation units for the compiler
to perform instantiation... is this because template instantiation is
something done at compile time by the compiler?
had template instantiation been done at linking time, would extern
keyword have worked? I understand that it really doesn't make sense
for the linker to do, i'm just trying to understand the reason why
export keyword came into picture...
Thanks in advance!!!
I was looking at the link,
http://www.comeaucomputing.com/4.0/docs/userman/export.html
and it looks like the basic purpose of exporting templates is make
sure that they are visible in other compilation units for the compiler
to perform instantiation... is this because template instantiation is
something done at compile time by the compiler?
had template instantiation been done at linking time, would extern
keyword have worked? I understand that it really doesn't make sense
for the linker to do, i'm just trying to understand the reason why
export keyword came into picture...
Thanks in advance!!!