I am trying to retrieve data from boost array with Bytes data which should at the end be 2 double. I don't why but I can't make the conversion of the buffer to a readable format here is my attempt :
boost::array<void*, 1024> arr;
boost::system::error_code error_2;
socket_2.read_some(boost::asio::buffer(arr), error_2);
for (int k = 0; k < 32; k++) { std::cout << arr[k]; }
I don't understand how to retrieve the data from arr, memcpy is not accepted for instance.