mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-22 03:32:24 +00:00
changes std::numeric_limits from class to struct
- avoids irksome Clang warning, 'mismatched-tags'
This commit is contained in:
@@ -165,7 +165,7 @@ class safe_base {
|
||||
>
|
||||
friend class safe_base;
|
||||
|
||||
friend class std::numeric_limits<
|
||||
friend struct std::numeric_limits<
|
||||
safe_base<Stored, Min, Max, P, E>
|
||||
>;
|
||||
|
||||
@@ -280,7 +280,7 @@ template<
|
||||
class P,
|
||||
class E
|
||||
>
|
||||
class numeric_limits<boost::numeric::safe_base<T, Min, Max, P, E> >
|
||||
struct numeric_limits<boost::numeric::safe_base<T, Min, Max, P, E> >
|
||||
: public std::numeric_limits<T>
|
||||
{
|
||||
using SB = boost::numeric::safe_base<T, Min, Max, P, E>;
|
||||
|
||||
Reference in New Issue
Block a user