diff --git a/include/util/static_assert.hpp b/include/util/static_assert.hpp index 234b26391..89cd24eb2 100644 --- a/include/util/static_assert.hpp +++ b/include/util/static_assert.hpp @@ -1,6 +1,7 @@ #ifndef OSRM_STATIC_ASSERT_HPP #define OSRM_STATIC_ASSERT_HPP +#include #include namespace osrm::util @@ -8,14 +9,13 @@ namespace osrm::util template inline void static_assert_iter_value() { - using IterValueType = typename std::iterator_traits::value_type; - static_assert(std::is_same::value, ""); + static_assert(std::is_same_v, Value>, ""); } template inline void static_assert_iter_category() { - using IterCategoryType = typename std::iterator_traits::iterator_category; - static_assert(std::is_base_of::value, ""); + // using IterCategoryType = typename std::iterator_traits::iterator_category; + // static_assert(std::is_base_of::value, ""); } } // namespace osrm::util