[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
 

Re: [CPROG] Kontrollera vad en template är..



Joachim Holst skrev:

> Hejsan !
>
> Har hört ett rykte om att i alla fall i microsoft världen kan man ta reda
> på vad en template är för typ. Där använder man ett komando som heter
> typeid.

Funktionen hedder typeid(.) og er ideelt erklæret i <typeinfo> jf. BS. 3.ed
p.415

> jag tar för givet att detta även fungerar i Linux världen. tyvärr,

SGI ser ud til at have lavet en type_traits der "virker for dem"

> så hittar jag inte typeid i någon include file.

Alas g++ is broken

> Någon som har en aning ???
> Vad jag vet, så gäller det endast i C++.

typeid(.) er en "native" C++ funktion men kan typiskt erstattes med en
dynamic_cast<.>(.)

Se dog Uses and Misuses of RTTI. BS. 3.ed. p. 417 - moralen er her at det er
en funktion du normalt *ikke* har lyst til at anvende!!!Hej fra Nils Åke
Ljunggren.

> /Jocke!
>
> ------------------------------------------------------------------
>
> ***   Linux... The choice of a thinking generation ***
>       e-mail: sslug@sslug
>
> ------------------------------------------------------------------





 
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] *