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