boostorg / mysql

MySQL C++ client based on Boost.Asio
https://www.boost.org/doc/libs/master/libs/mysql
Boost Software License 1.0
252 stars 32 forks source link

deferred doesn't work for connection in C++11 #193

Closed anarthal closed 8 months ago

anarthal commented 9 months ago

deferred tokens don't compile under C++11 for connection. This has been already fixed in any_connection, backport it to connection.

anarthal commented 8 months ago

Note that connection::async_connect is still incompatible with deferred in C++11 due to the dependence on typename Stream::endpoint_type. I don't see a way to workaround this. Note that any_connection::async_connect doesn't suffer from this.