|
From: erwan a. <erw...@fr...> - 2003-01-13 13:46:00
|
Well, this export directive is a very good idea, but which compiler supports it ? At least, gcc doesn't. ----- Original Message ----- From: "Ioannis Vranos" <no...@ho...> To: <dev...@li...> Sent: Monday, January 13, 2003 2:26 PM Subject: Re: [Dev-C++] templates in C++ Yes. Alternatively you can use the keyword export for the definition but that is not supported yet by all compilers. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys -------Original Message------- From: Esteban Valverde Date: 13 January 2003 15:13:12 To: dev-cpp Subject: Re: [Dev-C++] templates in C++ Hi, do you put all your template code in a header file and then include it in yout main program ? //file.h template <class T> class A{ A(); void B(); std::set<T> _list; }; template <class T> A<T>::A(){ ... } template <class T> void A<T>::B(){ ... } // end file.h // main.cc #include "file.h" int main(void) { A<int> a1; a1.B(); return 0; } best regards, Esteban ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |