[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++: Problem with overloading a constructor when splitting a
- To: Dan Kenigsberg <danken(at-nospam)cs.Technion.AC.IL>
- Subject: Re: C++: Problem with overloading a constructor when splitting a
- From: mulix <mulix(at-nospam)actcom.co.il>
- Date: Sun, 18 Nov 2001 13:27:25 +0200 (IST)
- Cc: <nobody(at-nospam)cs.Technion.AC.IL>, <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <200111181047.MAA15673@csd.cs.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Sun, 18 Nov 2001, Dan Kenigsberg wrote:
> This may seem an ugly feature of C++, but in fact it is better than the C
> counterpart - macros. In fact, writing the implementation of inline functions
> in header file is a beautiful gem, comparing to writing the implemetation of
> calss templates in header files. Yuck.
actually, writing the implementation of class templates in header files
is *not* a language feature, it's a limitation of current (?) compiler
technology, which can not handle templates being split up in different
compilation units.
[ i would supply more details, but couldnt find any references on
google. if anyone can shed more light, please do. ]
--
mulix
http://www.pointer.co.il/~mulix/
http://syscalltrack.sf.net/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il