We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a475ad2 commit 714b9eeCopy full SHA for 714b9ee
include/util/static_assert.hpp
@@ -10,15 +10,13 @@ namespace util
10
11
template <typename It, typename Value> inline void static_assert_iter_value()
12
{
13
- using IterValueType = typename std::iterator_traits;
14
- <It>::value_type;
+ using IterValueType = typename std::iterator_traits<It>::value_type;
15
static_assert(std::is_same<IterValueType, Value>::value, "");
16
}
17
18
template <typename It, typename Category> inline void static_assert_iter_category()
19
20
- using IterCategoryType = typename std::iterator_traits;
21
- <It>::iterator_category;
+ using IterCategoryType = typename std::iterator_traits<It>::iterator_category;
22
static_assert(std::is_base_of<Category, IterCategoryType>::value, "");
23
24
0 commit comments