| Home | Libraries | People | FAQ | More

#### with_diagnostics

Creates a `with_diagnostics_t` from a completion token.

##### Synopsis

Defined in header `<boost/mysql/with_diagnostics.hpp>`

    template<
        class CompletionToken>
    constexpr with_diagnostics_t< typename std::decay< CompletionToken >::type >
    with_diagnostics(
        CompletionToken&& token);

##### Description

The passed token is decay-copied into the `with_diagnostics_t` object.

##### Exception safety

Strong guarantee. Any exceptions thrown by constructing `CompletionToken` are propagated.

Convenience header `<boost/mysql.hpp>`