[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

: warning: ANSI C++ forbids floating-point template arguments



Jeg er ved at lave en klasse, der berskriver en bold i en kasse. Jeg vil
gerne have at bolden kender kassens brede, for så er der en hel del
ting, der bliver  lettere. 

Nu bruger jeg templates på følgende vis 

template <double kasselaengde; Dimensioner =3>
class placering:public Point <laesDim>;

Det compiler OK, men der kommer en masse fejlmeddelelser

typetest.c:339: warning: ANSI C++ forbids floating-point template
arguments
typetest.c:339: warning: ANSI C++ forbids floating-point template
arguments
typetest.c:339: warning: ANSI C++ forbids floating-point template
arguments
typetest.c:339: warning: ANSI C++ forbids floating-point template
arguments
... osv

Er der noget jeg skal tage alvorligt?


-- 
 Niels L Ellegaard

'http://dirac.ruc.dk/~gnalle/'


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *