Fucked C++ question:
I have a struct B, defined by me. I had the code
auto &b = bees.emplace_back();
b.value = 3;
A change *ELSEWHERE IN THE CODE* caused this to suddenly start failing with
"auto cannot be inferred"
changed the line to
B &b = bees.emplace_back();
The error became ("bees" underlined):
"initial value of reference to non-const must be an lvalue" (??)
I replaced the whole thing with
B b;
b.value = e;
b.push_back(b);
The compiler thought this was fine.
C++17.
wha ??? ?? ?????
@mcc Not at all sure but it sounds a bit like you clobbered the name resolution of `bees`, similar to what happens when you write `get<string>(myVariant)` in a member function (intending for it to be resolved to `std::get` via `using namespace std`) and then later add a member function called `get` to that same class
Or the incomprehensible errors you get if Windows' `near`/`far` macros clobber anything unexpected