[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Refactoring
From: |
Bradley Arsenault |
Subject: |
Re: [glob2-devel] Refactoring |
Date: |
Wed, 3 May 2006 15:24:19 -0700 |
On 5/3/06, Sébastien <address@hidden> wrote:
Le Mercredi 3 Mai 2006 17:23, Stéphane Magnenat a écrit:
> Very nice :-). Remember that as you use templates implemented in a cpp you
> must force the specialization for types you want to use, otherwise you'll
> have link problems.
>
> Steph
>
>
> _______________________________________________
> glob2-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/glob2-devel
You mean like
/home/sebastien/test/glob2/src/GameGUI.cpp:546: undefined reference to «
FormatableString& FormatableString::arg<char const*>(char const* const&)»
?
I solved the problem by putting theimplementation of arg in the header... What
is the real solution ?
Thats how your supposed to do it, actually.
There is an alternative I particularly like, is a .timpl file (or
another simialir extention), that contains inline and template methods
and functions, seperated from the header file, but included by the
header file at the end.
_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel
- Re: [glob2-devel] Refactoring, (continued)
- Re: [glob2-devel] Refactoring, Nuage, 2006/05/03
- Re: [glob2-devel] Refactoring, Sébastien, 2006/05/03
- Re: [glob2-devel] Refactoring, Cyrille Dunant, 2006/05/03
- Re: [glob2-devel] Refactoring, Stéphane Magnenat, 2006/05/03
- Re: [glob2-devel] Refactoring, Sébastien, 2006/05/03
- Re: [glob2-devel] Refactoring, Stéphane Magnenat, 2006/05/03
- Re: [glob2-devel] Refactoring, Sébastien, 2006/05/03
- Re: [glob2-devel] Refactoring,
Bradley Arsenault <=
- Re: [glob2-devel] Refactoring, Bradley Arsenault, 2006/05/01
- Re: [glob2-devel] Refactoring, Bradley Arsenault, 2006/05/01
- Re: [glob2-devel] Refactoring, Kai Antweiler, 2006/05/02
- Re: [glob2-devel] Refactoring, Stéphane Magnenat, 2006/05/03
- Re: [glob2-devel] Refactoring, Kai Antweiler, 2006/05/03