File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,9 @@ struct ITL_
79
79
static constexpr bool contains () { return std::is_base_of<ITL_EntryT<T>, ITL_>::value; }
80
80
81
81
template <typename T>
82
- static constexpr
83
- typename std::enable_if< std::is_base_of<ITL_EntryT<T>, ITL_>::value, Long>::type
84
- index () {
82
+ static constexpr Long index () {
85
83
return Base::template select<T>(ITL_{});
86
84
}
87
-
88
- template <typename T>
89
- static constexpr
90
- typename std::enable_if<!std::is_base_of<ITL_EntryT<T>, ITL_>::value, Long>::type
91
- index () {
92
- return INVALID_LONG;
93
- }
94
85
};
95
86
96
87
// //////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -2173,18 +2173,9 @@ struct ITL_
2173
2173
static constexpr bool contains () { return std::is_base_of<ITL_EntryT<T>, ITL_>::value; }
2174
2174
2175
2175
template <typename T>
2176
- static constexpr
2177
- typename std::enable_if< std::is_base_of<ITL_EntryT<T>, ITL_>::value, Long>::type
2178
- index () {
2176
+ static constexpr Long index () {
2179
2177
return Base::template select<T>(ITL_{});
2180
2178
}
2181
-
2182
- template <typename T>
2183
- static constexpr
2184
- typename std::enable_if<!std::is_base_of<ITL_EntryT<T>, ITL_>::value, Long>::type
2185
- index () {
2186
- return INVALID_LONG;
2187
- }
2188
2179
};
2189
2180
2190
2181
// //////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments