Thread: typeid and the type_info object

  1. #1
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787

    typeid and the type_info object

    My instructor started using the typeid() function and, from what I've found out from google searches, the type_info object. my question is: how portable is this and is it a windows thing?

    if it's not portable, is there a better way? I'm thinking about something in the base class (char or int or something) that can be changed depending on what class is derived from it...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    These ARE part of the language standard.

    Yeah, typeid, type_info, and the <typeinfo> header are all part of the standard.

Popular pages Recent additions subscribe to a feed