2 Layer Template Structures Useless?

Started by
22 comments, last by neonfaktory 20 years, 11 months ago
Linker errors are generally not that bad. You might''ve defined your function slightly different from the way that you declared it, or perhaps you are missing other templates and the linker is just giving you a seemingly unrelated error message. (Compilers are famous for that, you know.) From the error message it seems that the linker cannot tell whether your constructor GUIT::GUIT (...) is defined.
Advertisement
Thanks for the response NULL, I''m trying my damnest to figure it out.

In the meantime, I have a quick question that may help solve my problem.

Using "template class CList" and "template class GUI", what IS the proper syntax to make a CList of GUI elements?? I haven''t actually been able to get that to work - thanks again.
weee!
Like this:

CList<GUI<int> > 


Note the space between the last two greater-than characters. This is so the compiler doesn''t think you''re trying to right-shift something.

-W
Ahhh, thanks AP - I kept getting wacky errors and now I see why. I take it there''s no way to leave the inner datatype open till later without all this polymorphism I can''t get working?
weee!

This topic is closed to new replies.

Advertisement