Closed Arech closed 2 months ago
Same for hana::if_()
:
eval_if()
example works though: https://godbolt.org/z/rWvdvjPKv
I posted this as a potential bug in MSVC bug tracker and just got a reply from their compiler team, that it compiles with /Zc:ternary and indeed, it at least compiles: https://godbolt.org/z/sWeG3s3nv
I guess this concludes the ticket, so I'm closing it.
Hana is so good that I expected it to be more lively supported :D
Hey guys and gals, thank you for this awesome library!
I got a weird issue with
hana::any_of()
that I was even able to reproduce on godbolt: https://godbolt.org/z/6eaxaahYjIn short, even example code of
hana::any_of()
as described in the docs: https://www.boost.org/doc/libs/1_84_0/libs/hana/doc/html/group__group-_searchable.html#ga5f7ff0125c448983e1b96c3ffb84f646 fails on the latest MSVC, but compiles nice on (not so latest) gcc & clang.I've encountered that using boost v1.84 from vcpkg baseline
898b728edc5e0d12b50015f9cd18247c4257a3eb
, but I assume godbolt uses different baseline and maybe even version, and nonetheless it fails there too with exactly the same diagnosis:I tried /Zc:__cplusplus suggestion, but no luck...
My MSVC Version 17.9.6.
cl.exe
versionI'll very much appreciate suggestions how to fix that. I didn't expect such issue, honestly...