You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely caused by this lines (amongst other) inside rotaryEventIn.h:
template<class T> inline T operator| (T a, T b) { return (T)((int)a | (int)b); }
As generic programming in this case tend to apply to all enums or classes using an overloaded operator. One can also question if an enumeration is the right object for a bit set?
Anyways, compiler and linker seem happy when generic overloaded operations are declared as constexpr.
PR to follow.
The text was updated successfully, but these errors were encountered:
keldonin
added a commit
to keldonin/ArduinoMenu
that referenced
this issue
Mar 22, 2023
A linkage error occurs when using
rotaryEnventIn.h
in combination with combinedMenu::style
:In this example, the combination
This is likely caused by this lines (amongst other) inside
rotaryEventIn.h
:As generic programming in this case tend to apply to all enums or classes using an overloaded operator. One can also question if an enumeration is the right object for a bit set?
Anyways, compiler and linker seem happy when generic overloaded operations are declared as
constexpr
.PR to follow.
The text was updated successfully, but these errors were encountered: