Skip to content

Define http_listener if CPPREST_FORCE_HTTP_LISTENER_ASIO is defined #608

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

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

garethsb
Copy link
Contributor

When cpprestsdk is built with CPPREST_HTTP_LISTENER_IMPL = asio on Windows, for testing purposes (I'm trying to debug an issue encountered on Linux), the following complete source code fails to compile:

#include "cpprest/http_listener.h"
using web::http::experimental::listener::http_listener;

This is a one-line fix. (It's possible that the various preprocessor conditional expressions in this header should all be made more consistent.)

@ras0219-msft ras0219-msft merged commit 5ee4621 into microsoft:master Nov 23, 2017
@ras0219-msft
Copy link
Contributor

Looks simple, thanks for the PR!

I agree, the preprocessor macros are probably in need of a simplification.

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

Successfully merging this pull request may close these issues.

2 participants