This commit is contained in:
2024-09-15 01:25:58 +03:00
parent a7626bfe5e
commit d33c101d70
5 changed files with 95 additions and 48 deletions

View File

@@ -205,7 +205,9 @@ concept adc_tuple_like = adc_is_tuple_v<T> == true;
template <typename T>
// from https://stackoverflow.com/questions/74383254/concept-that-models-only-the-stdchrono-duration-types
concept adc_time_duration_c = requires {
[]<class Rep, class Period>(std::type_identity<std::chrono::duration<Rep, Period>>) {}(std::type_identity<T>());
[]<class Rep, class Period>(std::type_identity<std::chrono::duration<Rep, Period>>) {
}(std::type_identity<std::remove_cvref_t<T>>());
};