interval: allow use with scoped enums

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-10-01 23:16:58 +02:00
parent 010ee71d93
commit 7ea1870552

View File

@ -22,7 +22,7 @@ namespace stdex
/// ///
/// Constructs an invalid interval /// Constructs an invalid interval
/// ///
inline interval() noexcept : start(1), end(0) {} inline interval() noexcept : start(static_cast<T>(1)), end(static_cast<T>(0)) {}
/// ///
/// Constructs a zero-size interval /// Constructs a zero-size interval