openfoam/applications/test/autoPtr
Mark Olesen 6e3bc1f7d0 STYLE: can add compile-time deprecated message for autoPtr::set()
- deprecated Feb-2018, but not marked as such.

  The set() method originally enforce an additional run-time check
  (Fatal if pointer was already set), but this was rarely used.
  In fact, the set() method was invariably used in constructors
  where the pointer by definition was unset.

  Can now mark as deprecated to catch the last of these.
  We prefer reset() for similarity with std::unique_ptr

  Eg,
  FOAM_EXTRA_CXXFLAGS="-DFoam_autoPtr_deprecate_setMethod"  wmake
2020-11-19 16:57:45 +01:00
..
Make ENH: cleanup autoPtr class (issue #639) 2018-02-26 12:00:00 +01:00
Test-autoPtr.C STYLE: can add compile-time deprecated message for autoPtr::set() 2020-11-19 16:57:45 +01:00