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

@ -1,8 +1,6 @@
#include "Rasterizer.hpp"
#include <ExPolygon.hpp>
#include <cstdint>
// For rasterizing
#include <agg/agg_basics.h>
#include <agg/agg_rendering_buffer.h>
@ -18,8 +16,6 @@
// Experimental minz image write:
#include <miniz/miniz_tdef.h>
#include <miniz/miniz_tdef.h>
namespace Slic3r {
class Raster::Impl {

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;
}
};
/**