diff --git a/src/libslic3r/MTUtils.hpp b/src/libslic3r/MTUtils.hpp index f83d38a42..42992223f 100644 --- a/src/libslic3r/MTUtils.hpp +++ b/src/libslic3r/MTUtils.hpp @@ -244,21 +244,21 @@ template bool all_of(const C &container) }); } -template -struct remove_cvref +template struct remove_cvref { using type = typename std::remove_cv::type>::type; }; -template -using remove_cvref_t = typename remove_cvref::type; +template using remove_cvref_t = typename remove_cvref::type; template class C, class T> -class Container: public C> { +class Container : public C> +{ public: - explicit Container(size_t count, T&& initval): - C>(count, initval) {} + explicit Container(size_t count, T &&initval) + : C>(count, initval) + {} }; template using DefaultContainer = std::vector; @@ -268,13 +268,13 @@ template class C = DefaultContainer> inline C> linspace(const T &start, const T &stop, const I &n) { Container vals(n, T()); - T stride = (stop - start) / n; - - size_t i = 0; + + T stride = (stop - start) / n; + size_t i = 0; std::generate(vals.begin(), vals.end(), [&i, start, stride] { - return start + i++ * stride; + return start + i++ * stride; }); - + return vals; }