diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 08:31:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 08:31:23 +0200 |
| commit | b249700e1da7dd6631a8b4440587f4093a2bdef1 (patch) | |
| tree | 71f88855e72b11f927d194f0676bac93845d26be /src/lib/scoped_temporary.h | |
| parent | 94695fc3214917ad7310af36270ce1e0b88cdfa3 (diff) | |
Remove use of boost::noncopyable.
Diffstat (limited to 'src/lib/scoped_temporary.h')
| -rw-r--r-- | src/lib/scoped_temporary.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/scoped_temporary.h b/src/lib/scoped_temporary.h index 986f565a0..8f7416093 100644 --- a/src/lib/scoped_temporary.h +++ b/src/lib/scoped_temporary.h @@ -18,19 +18,23 @@ */ + #include <boost/filesystem.hpp> -#include <boost/noncopyable.hpp> #include <cstdio> + /** @class ScopedTemporary * @brief A temporary file which is deleted when the ScopedTemporary object goes out of scope. */ -class ScopedTemporary : public boost::noncopyable +class ScopedTemporary { public: ScopedTemporary (); ~ScopedTemporary (); + ScopedTemporary (ScopedTemporary const&) = delete; + ScopedTemporary& operator= (ScopedTemporary const&) = delete; + /** @return temporary filename */ boost::filesystem::path file () const { return _file; |
