Thread: Yet another overloading operators thread, your help is severely needed

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    In the above operator, whether or not the parameter were references and const or not, it is unable to do anything unless it's a friend.
    That is true. It is a friend. What is your point?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No matter.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text RPG - Overloading Operators
    By legit in forum Game Programming
    Replies: 9
    Last Post: 11-25-2008, 01:47 PM
  2. overloading operators
    By thracian in forum C++ Programming
    Replies: 12
    Last Post: 06-23-2008, 07:23 PM
  3. overloading operators for vector addition
    By cunnus88 in forum C++ Programming
    Replies: 10
    Last Post: 10-13-2006, 02:59 AM
  4. overloading postfix/prefix operators for a class
    By jpipitone in forum C++ Programming
    Replies: 6
    Last Post: 06-19-2003, 09:06 PM
  5. How to make a thread sleep or std::recv timeout?
    By BrianK in forum Linux Programming
    Replies: 3
    Last Post: 02-26-2003, 10:27 PM