diff --git a/src/libslic3r/Rasterizer/Rasterizer.cpp b/src/libslic3r/Rasterizer/Rasterizer.cpp index 17d04d21b..dd6084b99 100644 --- a/src/libslic3r/Rasterizer/Rasterizer.cpp +++ b/src/libslic3r/Rasterizer/Rasterizer.cpp @@ -1,8 +1,6 @@ #include "Rasterizer.hpp" #include -#include - // For rasterizing #include #include @@ -18,8 +16,6 @@ // Experimental minz image write: #include -#include - namespace Slic3r { class Raster::Impl { diff --git a/src/libslic3r/Rasterizer/Rasterizer.hpp b/src/libslic3r/Rasterizer/Rasterizer.hpp index 2739605c9..1f548ad47 100644 --- a/src/libslic3r/Rasterizer/Rasterizer.hpp +++ b/src/libslic3r/Rasterizer/Rasterizer.hpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace Slic3r { @@ -13,6 +14,19 @@ class ExPolygon; struct RawBytes { std::unique_ptr 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; + } }; /**