chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.81k stars 1.2k forks source link

about BOOST_ASIO_DISABLE_BOOST_SOURCE_LOCATION #1299

Open iamhaiwen opened 1 year ago

iamhaiwen commented 1 year ago

include <boost/asio.hpp>

int main() { try { boost::asio::io_context ioc{1}; boost::asio::ip::tcp::socket socket{ioc}; socket.connect({}); } catch(std::exception const &e) { std::puts(e.what()); } }

i try to define -DBOOST_ASIO_DISABLE_BOOST_SOURCE_LOCATION,but the exception message with boost source location

iamhaiwen commented 1 year ago

at the asio/error.hpp, line 228,I think we need to add "&& !define(BOOST_ASIO_DISABLE_SOURCE_LOCATION)"

iamhaiwen commented 1 year ago

Is it because BOOST_ASIO_DISABLE_ERROR_LOCATION is not written in the document?