1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-25 10:15:50 +00:00

Fixes some ModelArrange warnings

This commit is contained in:
tamasmeszaros
2019-06-26 11:10:41 +02:00
parent 14b32c4f16
commit 6ff434aba3
2 changed files with 10 additions and 17 deletions
-9
View File
@@ -242,15 +242,6 @@ template<class C> bool all_of(const C &container)
});
}
template<class X, class Y> inline X ceil_i(X x, Y y)
{
static_assert(std::is_integral<X>::value &&
std::is_integral<Y>::value && sizeof(X) >= sizeof(Y),
"");
return (x % y) ? x / y + 1 : x / y;
}
// A shorter C++14 style form of the enable_if metafunction
template<bool B, class T>
using enable_if_t = typename std::enable_if<B, T>::type;