Open LeenHawk opened 4 days ago
There is a example working correctly in goltbot with#include
:
#include <fmt/ranges.h>
#include <vector>
#include <string>
int main() {
auto v = std::vector<std::string>{"1", "2", "3"};
fmt::print("{}", fmt::join(v, ", "));
}
Looks like this overload of join
is currently not marked as exported: https://github.com/fmtlib/fmt/blob/02537548f3a9efb5f3b83755acf50c8a16ba58c8/include/fmt/ranges.h#L700
A PR to fix it would be welcome.
The compiler is failing to find an appropriate overload for the
fmt::join
function that works withstd::vector<int>
or otherstd::vector<xxx>
.Environment:
Error message:
The minimal reproducal example:
CMakeLists.txt
main.cpp