Clang 10 says “error: explicitly defaulted move constructor is
implicitly deleted [...] note: move constructor of 'TemporaryFile' is
implicitly deleted because base class 'NonCopyable' has a deleted move
constructor”, so we’ll just have to do without NonCopyable. The effect
will be the same in pracice due to the “Fd fd” member not being
copyable.
#pragma once
#include "Fd.hpp"
-#include "NonCopyable.hpp"
#include "third_party/nonstd/string_view.hpp"
// This class represents a unique temporary file created by mkstemp. The file is
// not deleted by the destructor.
-class TemporaryFile : NonCopyable
+class TemporaryFile
{
public:
// `path_prefix` is the base path. The resulting filename will be this path