But when I try to compile this, I get "cannot resolve overloaded function operator&= based on conversion to type std::function<bool(bool, bool)>".
Did I write the correct types?
If I try using a template to generalize the last parameter instead of using std::function, I get "no known conversion for bitwise_helper(FOO&, FOO, <unresolved external symbol>)".
Appreciate any help.
~Daleth~
Edit:
Nevermind. Felt like an idiot when I realized I forgot to make the types references. Corrected instantiation of std::function: