We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3fc743 commit 08ab89bCopy full SHA for 08ab89b
include/geode/basic/range.hpp
@@ -81,12 +81,15 @@ namespace geode
81
: iter_( static_cast< Type >( begin ) ),
82
last_( static_cast< Type >( end ) )
83
{
84
- OPENGEODE_EXCEPTION( begin <= static_cast< T1 >(
85
- std::numeric_limits< Type >::max() ),
86
- "[Range] Invalid range" );
87
- OPENGEODE_EXCEPTION(
88
- end <= static_cast< T2 >( std::numeric_limits< Type >::max() ),
89
+ if constexpr( std::is_arithmetic_v< Type > )
+ {
+ OPENGEODE_EXCEPTION( begin <= static_cast< T1 >(
+ std::numeric_limits< Type >::max() ),
+ "[Range] Invalid range" );
+ OPENGEODE_EXCEPTION( end <= static_cast< T2 >(
90
91
92
+ }
93
}
94
95
private:
0 commit comments