18 Oct
2018
18 Oct
'18
12:26 p.m.
On 10/18/18 2:42 PM, Vinnie Falco via Boost wrote:
A user is reporting a static assert on compilation:
https://github.com/boostorg/beast/issues/1270
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++.