Skip to content
  • Mark OLESEN's avatar
    STYLE: can add compile-time deprecated message for autoPtr::set() · 6e3bc1f7
    Mark OLESEN authored
    - 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
    6e3bc1f7