You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../opt/conda/envs/dev/include/fmt/base.h:1089:48: error: 'back_inserter' was not declared in this scope; did you mean 'std::back_inserter'?
1089 | auto out() -> OutputIt { return back_inserter(container_); }
| ~~~~~~~~~~~~~^~~~~~~~~~~~
| std::back_inserter
Clang 18.1.8 (MacOS)
.../opt/conda/envs/dev/include/fmt/base.h:1089:35: error: use of undeclared identifier 'back_inserter'
1089 | auto out() -> OutputIt { return back_inserter(container_); }
|
I can work around this by defining back_inserter in the global namespace before including any of the fmt headers.
The text was updated successfully, but these errors were encountered:
I think we could add using namespace std; just before calling back_inserter which would handle both ADL and std::back_inserter case. Could you submit a PR?
I have a custom container with appropriate iterators,
push_back
method, etc. This used to work up until fmt 10.0.2I haven't yet been able to set up a minimal example to reproduce this.
However, the issue arise from this line where
back_inserter
is used without thestd::
prefix (maybe you wanted to use your owninvoke_back_inserter
?)fmt/include/fmt/base.h
Line 1098 in 9f0c0c4
The issue was seen when compiling C++23
GCC 14.1.0 (Linux)
Clang 18.1.8 (MacOS)
I can work around this by defining
back_inserter
in the global namespace before including any of the fmt headers.The text was updated successfully, but these errors were encountered: