mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
fix: Implicit conversion in a downcast_result
fixed
This commit is contained in:
@@ -33,7 +33,7 @@ using namespace physical::si;
|
||||
namespace {
|
||||
|
||||
template<Downcastable T>
|
||||
using downcast_result = std::conditional_t<UNITS_DOWNCAST_MODE, T, units::downcast_base_t<T>>;
|
||||
using downcast_result = std::conditional_t<UNITS_DOWNCAST_MODE != 0, T, units::downcast_base_t<T>>;
|
||||
|
||||
|
||||
// no library-defined base kind
|
||||
|
Reference in New Issue
Block a user