[PD-dev] C++ templates - question

Georg Holzmann grhPD at gmx.at
Wed Oct 13 14:08:42 CEST 2004


Hallo!

Thomas:
> I'm not sure why this happens - i'm using templates all the time, and i
find
> the easiest solution to write all the implementations inside the class
> declaration, like in
> 
> template<class T>
> class hula
> {
>     public:
>     hula(): a(0) {}
>     T plus(T b) { return a+b; }
>     private:
>     T a;
> };

OOps, I think the problem was, that I have included the Header file in the
source file again, i think I should only include the source file in the
header file and don't make an object !
(but I must try it at home !)

Thanks for help,
LG
Georg

-- 
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++





More information about the Pd-dev mailing list