22 Jan
2014
22 Jan
'14
10:35 p.m.
On Wed, Jan 22, 2014 at 12:18 PM, Carlos Ferreira
Ok, I think I got it! You have to define the BOOST_ASIO_ENABLE_HANDLER_TRACKING in every module that uses Boost. I was only defining in one and that may be the reason why io_service was returning (or crashing, don't know). What I know is that I defined BOOST_ASIO_ENABLE_HANDLER_TRACKING in all my modules and now I have tracking are proper program execution.
This is true for most macros that alter behavior. Because they usually modify the definition of inline and template functions, and multiple definitions of external linking functions with different definitions is an One Definition Rule violation.
Hope it helps!
Regards, -- Felipe Magno de Almeida