I want to write to a serial device. After each write I read from the device. I want to have a timeout for the read operation, if the device doesn't respond.
I've found a quite elegant solution here on SO. However, in my application, the port and the io_service are member variables, but when I try to instatiate the deadline_timer with the io_service member I get an access violation.