This commit is contained in:
Siarhei Fedartsou 2024-05-24 11:45:44 +02:00
parent 923f8a8479
commit 400732a76f

View File

@ -8,14 +8,14 @@ namespace osrm::util
template <typename It, typename Value> inline void static_assert_iter_value()
{
// using IterValueType = typename std::iterator_traits<It>::value_type;
// static_assert(std::is_same<IterValueType, Value>::value, "");
using IterValueType = typename std::iterator_traits<It>::value_type;
static_assert(std::is_same<IterValueType, Value>::value, "");
}
template <typename It, typename Category> inline void static_assert_iter_category()
{
// using IterCategoryType = typename std::iterator_traits<It>::iterator_category;
// static_assert(std::is_base_of<Category, IterCategoryType>::value, "");
using IterCategoryType = typename std::iterator_traits<It>::iterator_category;
static_assert(std::is_base_of<Category, IterCategoryType>::value, "");
}
} // namespace osrm::util