Use _LIBCPP_TEMPLATE_VIS instead of _LIBCPP_TYPE_VIS for a template class.
This fixes the nodiscard_extensions.pass.cpp and a couple func.search.default test cases when built in MSVC/DLL configurations.
Differential D99932
[libcxx] Fix the type attribute for a couple templates mstorsjo on Apr 6 2021, 1:57 AM. Authored by
Details
Use _LIBCPP_TEMPLATE_VIS instead of _LIBCPP_TYPE_VIS for a template class. This fixes the nodiscard_extensions.pass.cpp and a couple func.search.default test cases when built in MSVC/DLL configurations.
Diff Detail
Unit Tests Event TimelineComment Actions Could you fix the same thing in experimental/functional as well when you're here? Comment Actions Sure
Yes, so it seems. FWIW the experimental library can only be built as a static library, so that's not tested in the current CI setup (but I'm experimenting with extending testing with a static library case as well, which would increase coverage over a few more testcases, and narrow down a number of the existing xfails), but in a static library configuration on windows, both _LIBCPP_TYPE_VIS and _LIBCPP_TEMPLATE_VIS expand to nothing at all, so the distinction isn't quite as easy to pick up on. And I didn't find any test with an XFAIL regarding in_place_index_t, but let's see what another round through the CI says... |