dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    994

    Re: define operator assignment

    If a class uses dynamic memory then assume that all the constructors and destructor are required unless it says differently - then explicitly use =delete for those not required.
  2. Replies
    5
    Views
    994

    Re: define operator assignment

    As you are preping for exams, consider



    #include <algorithm>
    using namespace std;

    class Display
    {
    public:
  3. Replies
    5
    Views
    994

    Re: define operator assignment

    When implementing a class that uses dynamic memory, as a minimum you need
    - constructor(s)
    - destructor
    - copy constructor (or marked as deleted)
    - copy assignment (or marked as deleted)

    and...
Results 1 to 3 of 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)