We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6421a4 commit 72f6d1cCopy full SHA for 72f6d1c
include/bux/LexBase.h
@@ -131,9 +131,12 @@ class C_Screener: public I_Parser
131
};
132
133
template<T_LexID IGNORED>
134
-struct C_ScreenerNo: C_Screener<bool(*)(T_LexID)>
+class C_ScreenerNo: public C_Screener<bool(*)(T_LexID)>
135
{
136
- constexpr explicit C_ScreenerNo(I_Parser &parser): C_Screener<bool(*)(T_LexID)>(parser, *[](T_LexID token){ return token == IGNORED; }) {}
+public:
137
+ constexpr explicit C_ScreenerNo(I_Parser &parser): C_Screener<bool(*)(T_LexID)>(parser, predicate) {}
138
+private:
139
+ static bool predicate(T_LexID token) { return token == IGNORED; }
140
141
142
template<class T_Data> requires (!std::is_base_of_v<I_LexAttr,T_Data>)
0 commit comments