Closed vldt closed 3 years ago
I can't reproduce the bug with Boost 1.74. AFAIK it's still a compilation error in Goldbolt because it does not allow selecting the boost version for MSVC (but the VCPKG is version 202004 and it seems that boost 1.74 is still a work in progress in vcpkg (https://github.com/microsoft/vcpkg/issues/13033).
The following code does not compile in MSVC 19.22 but compiles fine in Clang and/or GCC.
Godbolt here: https://godbolt.org/z/QxQ6T5
In MSVC, as a workaround, we have to explicitly specify the allocator for small_vector: https://godbolt.org/z/VvU4j2