maths: allow different types for samesign
This commit is contained in:
parent
e38cf27d6d
commit
7d3ae8bd8f
@ -363,10 +363,10 @@ namespace cruft {
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
template <typename A, typename B>
|
||||
constexpr
|
||||
bool
|
||||
samesign (T a, T b)
|
||||
samesign (A &&a, B &&b)
|
||||
{
|
||||
return (a >= 0 && b >= 0) || (a <= 0 && b <= 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user