Closed stigrs closed 2 years ago
Hi @stigrs ! You're right about the lambda -- it needs inline
so as not to break ODR.
Use of auto
as one of the parameters makes the lambda a "generic lambda," which means that its operator()
is templated, so we don't have to worry about ODR for that. However, the lambda itself needs auto
.
@stigrs Thanks for pointing this out! I've pushed a commit to PR #245 that fixes this.
At line 87 in conjugated_if_needed.hpp,
conj_if_needed
is implemented as:Is this code missing
template <class T>
orinline
? As the code is now, it will be defined multiple times.