Here, in this constructor, i define almost all the attributs like they need to be defined.
But, i have a problem that i never had in a full .cpp file : When i define the resolver in the constructor, the compiler say me that i've got an error :
1 2 3 4
/home/User/C++ Projects/Client/Network.cpp:9: error: no matching function for call to ‘boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::basic_resolver(boost::asio::io_service*)’
Connection::Connection(const std::string ip) : m_ip(ip), is_connected(false), m_resolver(tcp::resolver(&m_io_service)), m_query(tcp::resolver::query(m_ip, "connect_back")), m_endpoint_iterator(m_resolver.resolve(m_query)), m_socket(tcp::socket(m_io_service)){
^
I don't understand why, because i use the regular things !