Add nonstd::unique_ptr as a workaround until std::unique_ptr is allowed.
authorTom Sepez <tsepez@chromium.org>
Fri, 17 Apr 2015 19:55:39 +0000 (12:55 -0700)
committerTom Sepez <tsepez@chromium.org>
Fri, 17 Apr 2015 19:55:39 +0000 (12:55 -0700)
commit29bc87d102b9e36c1e15385756c9fa9a214f3503
tree0b366445d13533896dfdfd41d60636d2159abaf1
parentee2fe42f9bf3ac6afc4f05f79629a3e34179a2b9
Add nonstd::unique_ptr as a workaround until std::unique_ptr is allowed.

This is a copy of breakpad's standalone scoped_ptr, which has been
renamed to nonstd::unique_ptr, and from which more complicated classes
have been removed. The reset() method has also been tweaked to more
closely match c++11, and an implicit conversion to bool has been added.

BUG=https://code.google.com/p/pdfium/issues/detail?id=55
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1091283002
third_party/BUILD.gn
third_party/base/nonstd_unique_ptr.h [new file with mode: 0644]
third_party/third_party.gyp