offa / scope-guard

Implementation of Scoped Guards and Unique Resource as proposed in P0052.
MIT License
46 stars 6 forks source link

Type D of unique_resource can not be a reference #130

Closed offa closed 6 years ago

offa commented 6 years ago

Type D of unique_resource can not be a reference and therefore doesn't need any special handling. Relates to #129.

Ref. #117

offa commented 6 years ago

Probably #123, #127 and #129 should be implemented before this.

offa commented 6 years ago

It must, however guard against a throwing assignment and needs to take care of the resource in case of an error. Therefore it's kept.