Article View: gnu.g++.help
Article #785Re: ostream & templates
From: Albert Golembiowski
Date: Mon, 09 Oct 1995 00:24
Date: Mon, 09 Oct 1995 00:24
21 lines
1287 bytes
1287 bytes
ag> From: Jeremy.H.@cis.ohio-state.edu writes:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ag> I can't get the thing to compile, probably because I'm not sure how
ag> to set up the declaration and definition. This is what I have:
ag>
ag> template <class X> class array
ag> {
ag> friend ostream operator << (ostream& s, array<X>& o);
ag> ...
ag> }
};
^_____ that's what you've missed
Don't you think that there are better ways of using this group's
teeming reservoir of knowledge?
--
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Albert Golembiowski albert@inrs-telecom.uquebec.ca (514) 762-8655
INRS Telecommunications, 16 Place du Commerce, Verdun, Quebec, Canada, H3E 1H6
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Technical Details
Message-ID:
<9510090024.AA19535@nora>Path:
arc1-ca.pugleaf.net!inrs-telecom.uquebec.ca!albertReferences:
<454e5e$fub@mars.earthlink.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!inrs-telecom.uquebec.ca!albert From: albert@inrs-telecom.uquebec.ca (Albert Golembiowski) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: ostream & templates Date: 8 Oct 1995 20:24:22 -0400 Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu Sender: daemon@cis.ohio-state.edu Distribution: world Message-ID: <9510090024.AA19535@nora> References: <454e5e$fub@mars.earthlink.net>