Skip to content
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

include/boost/iostreams/device/mapped_file.hpp 349 visibility problems #130

Open
incardon opened this issue Apr 5, 2021 · 0 comments
Open

Comments

@incardon
Copy link

incardon commented Apr 5, 2021

For time reason I cound not do more testing, but in boost 1.75.0, look like there is a conflict in visibility.

/home/i-bird/openfpm_dependencies_clang/BOOST/include/boost/iostreams/device/mapped_file.hpp:349:53: error: 'safe_bool_helper' is a private member of 'boost::iostreams::mapped_file_source'
using mapped_file::operator int mapped_file_source::safe_bool_helper::*;
^
/home/i-bird/openfpm_dependencies_clang/BOOST/include/boost/iostreams/device/mapped_file.hpp:155:8: note: implicitly declared private here
struct safe_bool_helper { int x; };

... Looking at the code as reported by the compiler ... I have the tendency to give right to the compiler. On another note I have to admit I compiled BOOST with many compilers gcc nvcc clang and this is the first time I saw this error. It happen with the combo nvcc 11.2 + clang with underlying compiler

The warkaround was to move the line under
typedef int safe_bool_helper::* safe_bool;

into the public section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant