Closed atul20031 closed 1 year ago
I can't reproduce on Godbolt (https://godbolt.org/z/W1qv8j5bz), but this looks like a MSVC issue to me. I don't think we've changed much in that area between 1.75 and 1.78. I suggest you reduce this by inlining the definition of hana::apply
out of the header and report that to MSVC, without usage of Hana. If they turn out to be conforming and Hana's doing something wrong, ping us and we'll reopen.
We are upgrading Boost to 1.78.
On bringing
boost::hana::apply/transform
into the current scope with the help ofusing
keyword results in 'identifier not found' error on Windows MSVC 2019 . The error seems to be happening whenapply
ortransform
is accessed inside a lambda function. However, it works fine outside the lambda.Below is the sample code for reference:
In the above code, accessing
apply
inside the lambda compiles to 'identifier not found' error, however the first call which is outside the lambda works fine.Furthermore, the code compiles successfully if the lambda does not take any argument, for eg:
This issue is not seen with Boost 1.75 version. I am not sure why this is happening after upgrading to Boost 1.78. Can someone please have a look?
Compiler error :
error C3861: 'apply': identifier not found