Thread: Tree of different items

  1. #46
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    If someone knows how to achieve this typedef, he is more than welcome.

    Code:
    typedef (static_cast<const Inner*>) (cast);
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  2. #47
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    static_cast is an operator, you can't rename it. But:
    Code:
    typedef const Inner *CPINNER;
    static_cast<CPINNER>(...)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-01-2007, 01:08 PM
  2. Replies: 5
    Last Post: 12-02-2006, 11:03 AM
  3. Tree-view bold items
    By mobazr in forum Windows Programming
    Replies: 3
    Last Post: 03-14-2005, 08:45 AM
  4. display tree data in binary tree format
    By xddxogm3 in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2003, 12:47 AM
  5. Replies: 5
    Last Post: 05-23-2003, 01:11 PM