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

Search:

Type: Posts; User: Marc G

Search: Search took 0.02 seconds.

  1. Replies
    31
    Views
    1,885

    Re: using namespace std

    Yes, if you really want to keep using the old, legacy, non-recommended way, then that's correct.
    But I'm sorry, it's 2018, you should use the modern C++ "= delete" syntax.
    If I would ask the...
  2. Replies
    31
    Views
    1,885

    Re: using namespace std

    It really simple.
    Have a close look at the main.cpp.
    Is it doing any copying or copy assignments?
    If yes, implement them.
    If no, explicitly delete them (= delete).
  3. Replies
    31
    Views
    1,885

    Re: using namespace std

    If you have a class with dynamic memory, and you don't want to implement a copy constructor and copy assignment operator, then you should explicitly delete them.
    If you don't explicitly delete them,...
  4. Replies
    31
    Views
    1,885

    Re: using namespace std

    I haven't had time to read everything yet, but I see you are using NULL.
    In modern C++, you should not use NULL anymore.
    Instead, you should really start using nullptr.
Results 1 to 4 of 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)