Thread: typedef cross reference? Help

  1. #1
    Registered User
    Join Date
    May 2006

    typedef cross reference? Help

    Have code like:
    template <...> Tmp_a;
    template <...> Tmp_b;
    class A {
      typedef  Tmp_a<B:type_b> Type_a;
    class B {
     typedef  Tmp_b<A:type_a>  Type_b;
    Don't know how to get it working. Similar problem could happen on class declaration. But that can be solved by predeclaration. How can I deal with typedef.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Seattle, WA
    That doesn't really make sense.

    typedef Tmp_a<B::type_b> Type_a;
    typedef Tmp_a<Tmp_b<A::type_a</*infinity*/
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Problem with Makefile
    By pinkprincess in forum C Programming
    Replies: 3
    Last Post: 06-24-2007, 09:02 AM
  4. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  5. Please STICKY this- vital to MSVC 6 dev - BASETSD.h
    By VirtualAce in forum Game Programming
    Replies: 11
    Last Post: 03-15-2005, 09:22 AM