Closed Lastique closed 1 year ago
This misses a couple of other uses of std::ios_base::failbit
, e.g. in include/boost/spirit/home/karma/stream/format_manip.hpp
& include/boost/spirit/home/karma/stream/detail/format_manip.hpp
, see https://github.com/Flamefire/spirit/actions/runs/6442261776/job/17492909668 & https://github.com/boostorg/spirit/pull/774
I've added a few more workarounds, but it looks like missing includes are all over Boost.Spirit.
This PR is not meant to be an exhaustive fix for this problem, just something I found during the switch to invoke_swap
.
On October 8, 2023 12:29:09 PM Alexander Grund @.***> wrote:
Interesting that you seem to have required more changes, I added much less to make the test PR pass
My original set of changes were enough to get the tests passing for me. The added ones are what you pointed out and what caught my eye while I was fixing those.
My original set of changes were enough to get the tests passing for me. The added ones are what you pointed out and what caught my eye while I was fixing those.
I see makes sense. I tested your changes in #774 and it passes CI so this is good to merge :+1:
Use
failbit
as a dependent name to avoid having to include<ios>
forstd::ios_base::failbit
.Add missing includes for
enable_if
andmpl::true_
/mpl::false_
.