Skip to content

Example Server Code in 0.12.0 Documentation uses 'response'; doesn't compile #624

Closed

Description

@MMOSimca

http://cpp-netlib.org/0.12.0/index.html

The Hello World HTTP server examples listed in the documentation will not compile because the 'server::response' member is now unused (I guess? First time user) in favor of 'server::connection_ptr' (at least that is what the included hello_world_server.cpp has replaced it with).

This ended up being a significant issue for me because I assumed it was simply my fault for trying to be fancy and do it in Windows (VS 2015), so I then spent several hours trying to get it working in Linux as well, which I'm not super great at (so I again assumed it was my fault).

I probably should have tried looking elsewhere for an example or looking at the documentation for 'response' and seeing it changed or tried an older version, etc; just pointing out that there is an issue.

Activity

  1. deanberris commented on Apr 8, 2016

    @deanberris
    Member

    Oh, yes, that's broken. 😦

    Do you have time to fix this and send a pull request to the 0.12-release branch?

  2. self-assigned this
    on Apr 8, 2016
  3. added a commit that references this issue on Apr 9, 2016
    3f35a1e
  4. glynos commented on Jun 14, 2016

    @glynos
    Member

    Fixed in 0.12, and the documentation is updated in 0.13 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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