Thread: Besides overloading operators...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    417

    Besides overloading operators...

    All right, I finally fixed all the operator overloads on my class.

    Now, is there any way to create a new operator that doesn't already exist?

    Also, how would I overload the ~ operator? Thats the ONLY operator I don't have! (do I want it?)

    Thanks, I'm just this close to being finished!!!
    Last edited by Trauts; 12-11-2002 at 09:56 AM.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    80
    You cannot create new operators. =) Too bad, eh?

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    417
    Yeah, stupid as it may sound, it would have been nice.

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Originally posted by Trauts
    Yeah, stupid as it may sound, it would have been nice.
    I think that, The problem is that if you want to creat new operators, the readability of your code will decrease, new operatprs will not make sense.
    none...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about overloading operators
    By *DEAD* in forum C++ Programming
    Replies: 9
    Last Post: 05-08-2008, 10:27 AM
  2. Replies: 16
    Last Post: 10-27-2007, 12:42 PM
  3. Overloading fstream's << and >> operators
    By VirtualAce in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2007, 03:17 AM
  4. operators overloading
    By waqasriazpk in forum C++ Programming
    Replies: 1
    Last Post: 07-26-2002, 01:05 AM
  5. Overloading operators...
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 11-21-2001, 08:24 PM