Next try to fix build on msvc2013

This commit is contained in:
tamasmeszaros 2019-03-25 13:45:28 +01:00
parent ea6e6023f9
commit 70fa85d024
2 changed files with 14 additions and 4 deletions

View file

@ -4,6 +4,7 @@
#include <ostream>
#include <memory>
#include <vector>
#include <cstdint>
namespace Slic3r {
@ -13,6 +14,19 @@ class ExPolygon;
struct RawBytes {
std::unique_ptr<std::uint8_t> buffer = nullptr;
size_t size = 0;
// FIXME: the following is needed for MSVC2013 compatibility
RawBytes() = default;
RawBytes(const RawBytes&) = delete;
RawBytes(RawBytes&& mv): buffer(std::move(mv.buffer)), size(mv.size) {}
RawBytes& operator=(const RawBytes&) = delete;
RawBytes& operator=(RawBytes&& mv) {
buffer.swap(mv.buffer);
size = mv.size;
return *this;
}
};
/**