Operator overloading

This is a discussion on Operator overloading within the C++ Programming forums, part of the General Programming Boards category; How exacly do i overload the + operator for my class, i try to overload it but it says that ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    25

    Operator overloading

    How exacly do i overload the + operator for my class, i try to overload it but it says that couldnt find the function. By the way the class is templated.

    thanks

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Rather hard to tell without some code...
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    25
    dont worry i solved it

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21