-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++23, libstdc++-14, clang++-17 : trivial flat_map::operator[] program fails to compile #282
Comments
Looks like a clang/libstdc++ bug as std::get is not found. |
Thanks for the report. I can't reproduce this issue with clang-17 and clang-18 in Ubuntu 24.04 with current develop version. Can you test it with the latest version and check if the issue is already solved? |
Hm, this happens here in an up-to-date ArchLinux container, assuming boost_1_85_0 extracted in $PWD : $ docker run -v $PWD:/src -it archlinux:latest
$ pacman -Sy
$ pacman -S clang
$ echo '#include <boost/container/flat_map.hpp>
int main() {
boost::container::flat_map<int, int> f;
f[0];
}' > foo.cpp
$ clang++ foo.cpp -std=c++23 -I /src/boost_1_85_0 |
Is there a single-command easy invocation to get current boost develop ? I'm not sure I want to clone every repo... |
Not an easy way, AFAIK. However Container only depends on Assert, Config, Intrusive and Move. You can automate the download of dependencies of a single library as explained here, in the section "Individual Modules": https://www.boost.io/doc/user-guide/getting-started.html Another option is to wait a few weeks until the Boost 1.86 beta tar.gz is generated. |
Repro:
The error:
The text was updated successfully, but these errors were encountered: