🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #1092

Re: Templates

#1092
From: Martijn Lievaart
Date: Thu, 08 Apr 1999 00:00
21 lines
1832 bytes
Alexander Dymerets wrote in message <370C598E.C8C64F66@te.net.ua>...
>Hi!
>> I'm trying to design template classes in C++ (under Linux and Solaris)
using
>> the gcc compiler, but I'm running into trouble.  It seems that the
template
>> functions must be written
>> within the header (.h) file.  Whenever they are written in the .cpp file
I
>> get errors about them not being there.
>
>All functions in template classes must be inline.


Apart from some bugs in some compilers, this is simply not true. It is the
most portable though.

Martijn
--
My reply-to address is intentionally set to /dev/null
reply to mlievaart at orion in nl
Technical Details
Message-ID: <7ei7vb$nad@news3.euro.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <ShVO2.260$G4.285045@news.abs.net> <370C598E.C8C64F66@te.net.ua>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5392,eaa6e2f181a1fe60
X-Google-Attributes: gidf5392,public
X-Google-Thread: f8c9b,eaa6e2f181a1fe60
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: 10c696,eaa6e2f181a1fe60
X-Google-Attributes: gid10c696,public
X-Google-Thread: fc89c,eaa6e2f181a1fe60
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,eaa6e2f181a1fe60
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 100c5f,eaa6e2f181a1fe60
X-Google-Attributes: gid100c5f,public
X-Google-Thread: faa64,eaa6e2f181a1fe60
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 109fba,eaa6e2f181a1fe60
X-Google-Attributes: gid109fba,public
From: "Martijn Lievaart" <nobody@orion.nl>
Subject: Re: Templates
Date: 1999/04/08
Message-ID: <7ei7vb$nad@news3.euro.net>
X-Deja-AN: 464012405
References: <ShVO2.260$G4.285045@news.abs.net> <370C598E.C8C64F66@te.net.ua>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: EuroNet Internet
Newsgroups: alt.linux,alt.os.linux,comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.development.system,comp.unix.programmer,comp.unix.questions,gnu.g++.help,gnu.gcc.help