Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

http version modifier doesn't compile for basic_response #182

Closed
@kispaljr

Description

@kispaljr

The following code:

boost::network::http::basic_response<boost::network::http::tags::http_server> r;r << boost::network::http::version(boost::network::http::traits::version<decltype(r)>::type ());

gives the following compilation error:

In file included from /home/isti/CPE/src/otherlib//cpp-netlib/boost/network/protocol/http/response.hpp:15:0,                 from /home/isti/CPE/src/otherlib//cpp-netlib/boost/network/protocol/http/server.hpp:12,                 from /home/isti/CPE/src/protos/http/HttpServer.h:3,                 from /home/isti/CPE/src/protos/http/src/HttpServer.cpp:1:/home/isti/CPE/src/otherlib//cpp-netlib/boost/network/protocol/http/message/directives/version.hpp: In instantiation of ‘typename boost::enable_if<boost::network::is_pod<Tag>, void>::type boost::network::http::version_directive<ValueType>::operator()(Message<Tag>&) const [with Tag = boost::network::http::tags::http_server; Message = boost::network::http::basic_response; ValueType = std::basic_string<char>; typename boost::enable_if<boost::network::is_pod<Tag>, void>::type = void]’:/home/isti/CPE/src/otherlib//cpp-netlib/boost/network/protocol/http/response.hpp:95:9:   required from ‘boost::network::http::basic_response<Tag>& boost::network::http::operator<<(boost::network::http::basic_response<Tag>&, const Directive&) [with Tag = boost::network::http::tags::http_server; Directive = boost::network::http::version_directive<std::basic_string<char> >]’/home/isti/CPE/src/protos/http/src/HttpServer.cpp:72:99:   required from here/home/isti/CPE/src/otherlib//cpp-netlib/boost/network/protocol/http/message/directives/version.hpp:15:5: error: ‘struct boost::network::http::basic_response<boost::network::http::tags::http_server>’ has no member named ‘version’

cpp-netlib v0.9.4
Ubuntu 12.10 , gcc 4.7.2, boost 1.51

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp