Skip to content

Commit f107f21

Browse files
committed
Added explicit move constructor to temporary_filet
VS2013 does not allow default generation of move constructors. Added explicit implementation to temporary_filet.
1 parent 68e1595 commit f107f21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/tempfile.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ class temporary_filet
3232
// Using the copy constructor would delete the file twice.
3333
temporary_filet(const temporary_filet &)=delete;
3434

35-
temporary_filet(temporary_filet &&)=default;
35+
temporary_filet(temporary_filet &&other) :
36+
name(std::move(other.name))
37+
{
38+
}
3639

3740
// get the name
3841
std::string operator()() const

0 commit comments

Comments
 (0)