Open iamhaiwen opened 1 year ago
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
at the asio/error.hpp, line 228,I think we need to add "&& !define(BOOST_ASIO_DISABLE_SOURCE_LOCATION)"
Is it because BOOST_ASIO_DISABLE_ERROR_LOCATION is not written in the document?
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