Thread: Moving on...

  1. #1
    Registered User Osaou's Avatar
    Join Date
    Nov 2004
    Location
    Stockholm, Sweden
    Posts
    69

    Moving on...

    So far I've mostly programmed pure C or what's commonly known as C/C++... This is because most of my projects are developed with speed being the highest priority.

    But now I'm... revising my in-depth C++ knowledge...

    So let me see if I got this right:
    static_cast, const_cast (any kind of const-ness, actually) and reinterpret_cast are all resolved at compile time, right?
    And only dynamic_cast uses RTTI, isn't that so?
    Last edited by Osaou; 07-24-2006 at 06:38 PM.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Right. That is so.

    You can read more about C++ casting operators here.

    http://www.acm.org/crossroads/xrds3-1/ovp3-1.html
    http://www.codeguru.com/forum/showthread.php?t=312456

  3. #3
    Registered User Osaou's Avatar
    Join Date
    Nov 2004
    Location
    Stockholm, Sweden
    Posts
    69
    Cheers, mate.
    I know some googling probably would have helped as well. But I was tired and wanted to stroll the forum some... =)
    Last edited by Osaou; 07-24-2006 at 10:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-23-2007, 11:05 PM
  2. moving median function
    By supermeew in forum C Programming
    Replies: 0
    Last Post: 05-04-2006, 02:37 PM
  3. Replies: 4
    Last Post: 01-16-2006, 05:58 PM
  4. 3D moving
    By bluehead in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2005, 05:46 AM
  5. Simple program i cant get (dot moving)
    By Lupusk9 in forum C++ Programming
    Replies: 4
    Last Post: 09-14-2004, 08:04 PM