[C++] Prefer std::make_shared/std::make_unique over constructor with new

XMLWordPrintableJSON

      Advantage: readabilty, exception safety and efficiency(only for shared_ptr).

      Cases that don't apply: When calling a private/protected constructor within class member function, make_shared/unique can't work.

            Assignee:
            Jin Shang
            Reporter:
            Jin Shang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h