Boost logo

Boost Users :

Subject: Re: [Boost-users] Server failing when BOOST_ASIO_ENABLE_HANDLER_TRACKING is active
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2014-01-22 17:35:21


On Wed, Jan 22, 2014 at 12:18 PM, Carlos Ferreira <carlosmf.pt_at_[hidden]> wrote:
> 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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net