Boost logo

Boost :

Subject: Re: [boost] [intrusive] static_assert(sizeof(caster)==sizeof(int))
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2018-10-18 12:26:03

On 10/18/18 2:42 PM, Vinnie Falco via Boost wrote:
> A user is reporting a static assert on compilation:
> <>
> Any ideas?

The comment by the static assert says that it may break in more
complicated inheritance modes, like virtual inheritance. Is it possible
that that is the source of the problem?

BTW, I'd recommend using base hooks instead of the member hooks wherever
possible because there is no well defined way in C++ to obtain a pointer
to the containing object from a pointer to member. Boost.Intrusive uses
various compiler-specific hacks to implement this functionality. OTOH,
converting a pointer to a base class to a pointer a derived class is
fairly standard C++.

Boost list run by bdawes at, gregod at, cpdaniel at, john at