xo-expression2/include/xo/unit/ratio_concept.hpp

13 lines
329 B
C++

/* @file ratio_concept.hpp */
#pragma once
#include <concepts>
namespace xo {
namespace unit {
template <typename Ratio>
concept ratio_concept = (std::is_signed_v<decltype(Ratio::num)>
&& std::is_signed_v<decltype(Ratio::den)>);
} /*namespace unit*/
} /*namespace xo*/