mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Remove c++17 dependency
This commit is contained in:
committed by
Luis Ángel San Martín
parent
2d3888b4b4
commit
4990093e3d
@ -68,10 +68,10 @@ private:
|
||||
bool isEof() const;
|
||||
void advance();
|
||||
|
||||
template<typename First, typename... T>
|
||||
static bool isIn(First &&first, T &&... t)
|
||||
template<typename T>
|
||||
static bool isIn(const T &e, const std::list<T> &v)
|
||||
{
|
||||
return ((first == t) || ...);
|
||||
return std::find(v.begin(), v.end(), e) != v.end();
|
||||
}
|
||||
|
||||
enum class FieldType { unknown,
|
||||
|
Reference in New Issue
Block a user