Topic: propasal: template block to simplify out of class definition


Author: abarbati@iaanus.com (Alberto Barbati)
Date: Thu, 16 Jan 2003 05:45:48 +0000 (UTC)
Raw View
THORSTEN OTTOSEN wrote:
> And we have repeat the stuff for every d*** function. Shouldn't it be
> possible to allow something similar to this:
>
> template< typename T, typename T2 > class Foo<T,T2>
> {
>     inline some_type bar() const
>     {
>      ...
>      }
>
>     // more functions
>
> }
>
> ?

????? This syntax is already allowed! (except that you must remove the
<T,T2> up there). Am I missing the point?

Alberto Barbati



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]