Skip to content

http_method.cpp won't compile with GCC 10.1.0 #5

@sandman7920

Description

@sandman7920

GCC 10.1.0 can't compile http_method.cpp.

/usr/include/boost/utility/ostream_string.hpp: In instantiation of ‘std::basic_ostream<charT, traits>& boost::ostream_string(std::basic_ostream<charT, traits>&, const charT*, std::size_t) [with charT = char; traits = std::char_traits<char>; std::size_t = long unsigned int]’:
/usr/include/boost/utility/string_view.hpp:581:37:   required from ‘std::basic_ostream<charT, traits>& boost::operator<<(std::basic_ostream<charT, traits>&, const boost::basic_string_view<charT, traits>&) [with charT = char; traits = std::char_traits<char>]’
/usr/include/boost/beast/http/verb.hpp:150:29:   required from here
/usr/include/boost/utility/ostream_string.hpp:71:29: error: invalid use of incomplete type ‘class std::basic_ostream<char>’
   71 |     typename stream::sentry entry(os);

Adding #include <ostream> resolve the issue

P.S.
I don't known if this is a boost_beast problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions