Skip to content
Snippets Groups Projects
Commit 35a0fd3e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: reset tmp via assignment from literal nullptr (#1775)

- previously this was marked as '= delete' for consistency with
  assignment from an empty pointer being a runtime error.
  However, these can be considered semantically different and it makes
  sense to permit this as equivalent to reset(nullptr).

  This change does not break existing code since the operator was
  previously unavailable (deleted).

STYLE: refactor tmp operator=(T*)

- delegate to reset() after initial checks
parent 59bfbb95
Branches
Tags
1 merge request!378autoPtr/tmp cleanup
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment