maths: don't include coord headers
This commit is contained in:
parent
393ecede5a
commit
46645e4430
@ -14,7 +14,6 @@
|
||||
|
||||
#include "concepts.hpp"
|
||||
#include "types/traits.hpp"
|
||||
#include "coord/traits.hpp"
|
||||
#include "float.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
@ -559,10 +558,8 @@ namespace cruft {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
/// Variadic minimum
|
||||
template <typename T, typename U, typename ...Args>
|
||||
constexpr std::enable_if_t<
|
||||
!is_coord_v<T> && !is_coord_v<U>,
|
||||
constexpr
|
||||
std::common_type_t<T,U>
|
||||
>
|
||||
min (const T a, const U b, Args ...args)
|
||||
{
|
||||
if constexpr (sizeof... (args) > 0) {
|
||||
@ -588,10 +585,8 @@ namespace cruft {
|
||||
|
||||
/// Variadic maximum
|
||||
template <typename T, typename U, typename ...Args>
|
||||
constexpr std::enable_if_t<
|
||||
!is_coord_v<T> && !is_coord_v<U>,
|
||||
constexpr
|
||||
std::common_type_t<T,U>
|
||||
>
|
||||
max (const T a, const U b, Args ...args)
|
||||
{
|
||||
if constexpr (sizeof... (args) > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user