Re: recurring template problem

From: velthuijsen (velthuijsen_at_hotmail.com)
Date: 04/07/04


Date: 7 Apr 2004 01:52:31 -0700


"John Harrison" <john_andronicus@hotmail.com> wrote in message news:<c4uno6$2o08jm$1@ID-196037.news.uni-berlin.de>...
> "velthuijsen" <velthuijsen@hotmail.com> wrote in message
> news:e54e13ae.0404060149.4187f4cc@posting.google.com...
> > I've been reading (and using the examples in) Thinking in C++ (vol 2).
> >
> > One of the things that the author shows you can do with templates is
> > the following:
> >
> [snip]
> >
> > I know that I'm missing something here since the code will compile
> > without a warning but when I uncomment // Main TestID; I get
> > unresolved externals (ctor & dtor). The question is what is is that am
> > I missing? What rules am I trying to break? And is there a way around
> > the problem?
>
> It's the old, old problem. Put all your template code in the header file,
> that's where it belongs. I'm surprised Bruce Eckel didn't explain that in
> his book, but here it is in the FAQ.

He did. In his first book, chapter 16. Guess this is what I get when I
just copy/paste existing files instead of trying to remember all the
excercises he'd suggested.
 

> http://www.parashift.com/c++-faq-lite/containers-and-templates.html
>
> questions 34.12 to 34.15
>



Relevant Pages

  • Re: Missing Menus
    ... I totally rebuilt the server, ... and I still have no menus. ... The menus are missing from all templates. ...
    (microsoft.public.sharepoint.windowsservices)
  • Restoring Templates
    ... except that many templates are missing from the ... For example, in Word, many English templates in "Letters & Faxes" ... In the installation folder of Office XP, all MUI are correctly listed ...
    (microsoft.public.office.setup)
  • Re: Missing Menus
    ... The menus are missing from all templates. ... >>top menus on a Sharepoint Site ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: resumes
    ... I suspect you're not missing much: most of the Resume templates are ... John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer, ... McGhie Information Engineering Pty Ltd ...
    (microsoft.public.mac.office.word)
  • Re: Background missing when I save as web page
    ... Microsoft PPT MVP ... > They are really missing. ... I've tried templates with an embedded graphic as the ... >>> anyone know how to make the background appear when saving as web page? ...
    (microsoft.public.powerpoint)