[galib] Compile error C2906 in VC++.NET

christian.hresko christian.hresko at verizon.net
Mon Nov 22 11:37:39 EST 2004


i believe you have to replace the 'T' with char in the first case, and 'T' with float in the second.


> 
> From: daniel.kozelj at kiss.si
> Date: 2004/11/22 Mon AM 06:48:33 EST
> To: galib at mit.edu
> Subject: [galib] Compile error C2906 in VC++.NET
> 
> Hello,
> 
> I got the following compile error while building the galib242 in VC++ .NET:
> 
> Compiling...
> GAString.cpp
> d:\Moji_dokumenti\Daniel\Visual Studio Projects\IMMe\galib242
> \headers\GAString.cpp(48) : error 
> C2906: 'GA1DArrayAlleleGenome<T>::~GA1DArrayAlleleGenome(void)' : explicit 
> specialization requires 'template <>'
>         with
>         [
>             T=char
>         ]
> GARealGe.cpp
> d:\Moji_dokumenti\Daniel\Visual Studio Projects\IMMe\galib242
> \headers\GARealGe.cpp(48) : error 
> C2906: 'GA1DArrayAlleleGenome<T>::~GA1DArrayAlleleGenome(void)' : explicit 
> specialization requires 'template <>'
>         with
>         [
>             T=float
>         ]
> Generating Code...
> 
> Build log was saved at "file://d:\Moji_dokumenti\Daniel\Visual Studio 
> Projects\IMMe\Debug\BuildLog.htm"
> IMMe - 2 error(s), 0 warning(s)
> 
> If anybody knows how to eliminate the two errors regarding explicit 
> specialization with templates, please let me know.
> 
> Many thanks.
> 
> 
> ________________________
> :| kiss - http://kiss.si
> 
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib
> 



More information about the galib mailing list