User Profile

Collapse

Profile Sidebar

Collapse
Pulpeet
Pulpeet
Last Activity: Feb 6 '07, 11:23 PM
Joined: Nov 2 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Pulpeet
    replied to Graphics and Plotting in C++
    in C
    The GD library might also contain some useful functions:
    http://www.boutell.com/gd...
    See more | Go to post

    Leave a comment:


  • Ok. I can accept that.

    But in this case the strange thing is that is impossible to write a good assignment operator, but it is still required. I don't want that assignment operator to exist at all, because it doesn't do what it is supposed to do, which makes it dangerous.

    So, the compiler requires to have somthing of which it can know that it is impossible to function properly....
    See more | Go to post

    Leave a comment:


  • Pulpeet
    started a topic why assignment operator required, but not used?
    in C

    why assignment operator required, but not used?

    I have a class with const member variables. I want to put objects from that class in a vector. For adding objects to the vector, the compiler (g++ 4.0.1 on mac os x 10.4.8) requires me to provide a copy constructor and an assignment operator for that class. A copy constructor is no problem. An assigment operator is problematic, since there are const members, which can't be changed in the body of the assignment operator. So I wrote an empty assigment...
    See more | Go to post
No activity results to display
Show More
Working...