A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/fmtlib/fmt/issues/4113 below:

prefix · Issue #4113 · fmtlib/fmt · GitHub

I have a custom container with appropriate iterators, push_back method, etc. This used to work up until fmt 10.0.2

I 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 the std:: prefix (maybe you wanted to use your own invoke_back_inserter?)

The issue was seen when compiling C++23

GCC 14.1.0 (Linux)

.../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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4