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

Problems building with not that old gcc versions since Boost 1.73 #131

Open
reddwarf69 opened this issue Oct 10, 2022 · 0 comments
Open

Comments

@reddwarf69
Copy link

reddwarf69 commented Oct 10, 2022

Since 9379286, building

#include <boost/safe_numerics/safe_integer.hpp>
#include <fmt/format.h>
#include <fmt/ostream.h>

template<typename Stored,
         Stored Min,
         Stored Max,
         typename P,
         typename E>
struct fmt::formatter<
    boost::safe_numerics::safe_base<
        Stored, Min, Max, P, E
    >
> : fmt::ostream_formatter
{
};

void la()
{
    fmt::print("{}", boost::safe_numerics::safe<int>{ 4 });
}

with gcc 8.2-10.4 with -std=gnu++17 -Os -Wall fails. https://godbolt.org/z/Goc3er7vc

It's clearly a gcc bug, so it would be fair game to ignore it. But it affects Ubuntu 20.04.

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