1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Overloading operator<< as a friend to a template class

Discussion in 'C++' started by CrimzonRJ, Sep 30, 2006.

  1. CrimzonRJ

    CrimzonRJ New Member

    Joined:
    Sep 30, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Theoretically, how are you supposed to overload << as friend to a template class?

    I keep getting an 'unresolved extern symbol' error.

    Is this even a smart thing to do?
     
  2. Aztec

    Aztec New Member

    Joined:
    May 9, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    0
    Could you please should code which we can compile and check.
     

Share This Page