Skip to content
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

Type-check completion tokens #988

Closed
vinniefalco opened this issue Jan 18, 2018 · 0 comments
Closed

Type-check completion tokens #988

vinniefalco opened this issue Jan 18, 2018 · 0 comments

Comments

@vinniefalco
Copy link
Member

In the update to Asio the completion token type checks are missing, need to add them back. Typical implementation:

static_assert(is_completion_handler<
        BOOST_ASIO_HANDLER_TYPE(ReadHandler, void(error_code, std::size_t)),
            void(error_code, std::size_t)>::value,
            "ReadHandler requirements not met");
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

No branches or pull requests

1 participant