Explicitly default d_fname copy constructor
clang warns that an implicit copy constructor is deprecated in the presence of an explicitly defaulted copy-assignment operator. Add an explicitly defaulted default constructor too, since the explicitly defaulted copy constructor suppresses generation of an implicit default constructor, and the default constructor is needed.
This commit is contained in:
parent
634d72760f
commit
941190ff32
|
@ -56,6 +56,8 @@ window_event_result standard_handler(const d_event &event);
|
|||
// a filename, useful for declaring arrays of filenames
|
||||
struct d_fname : ntstring<FILENAME_LEN - 1>
|
||||
{
|
||||
d_fname() = default;
|
||||
d_fname(const d_fname &) = default;
|
||||
d_fname &operator=(const d_fname &) = default;
|
||||
template <std::size_t N>
|
||||
void operator=(char (&i)[N]) const = delete;
|
||||
|
|
Loading…
Reference in a new issue