Skip to content

Commit 72f6d1c

Browse files
committed
[XPlatform] VS2022 frowned about it, so it got fixed.
1 parent a6421a4 commit 72f6d1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/bux/LexBase.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,12 @@ class C_Screener: public I_Parser
131131
};
132132

133133
template<T_LexID IGNORED>
134-
struct C_ScreenerNo: C_Screener<bool(*)(T_LexID)>
134+
class C_ScreenerNo: public C_Screener<bool(*)(T_LexID)>
135135
{
136-
constexpr explicit C_ScreenerNo(I_Parser &parser): C_Screener<bool(*)(T_LexID)>(parser, *[](T_LexID token){ return token == IGNORED; }) {}
136+
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; }
137140
};
138141

139142
template<class T_Data> requires (!std::is_base_of_v<I_LexAttr,T_Data>)

0 commit comments

Comments
 (0)