Boost logo

Boost :

Subject: Re: [boost] Boost issue or no?
From: Peter Dimov (lists_at_[hidden])
Date: 2018-04-26 10:28:29


Joshua Alexander wrote:
> Hi all,
>
> I am trying to build pCloudCC and not sure if this is a Boost issue or a
> pCloud issue:

...

> */usr/local/include/boost/smart_ptr/detail/local_counted_base.hpp:67:49:**error:**__builtin_assume*’
> was not declared in this scope
> __builtin_assume( local_use_count_ >= 1 );

It's a pCloud issue. pCloud defines __has_builtin(x) to 1 here:

https://github.com/pcloudcom/console-client/blob/cd02e53e0d0f2884c5742899c84874dffa528834/pCloudCC/lib/pclsync/pcompiler.h#L50

which then makes Boost think that __builtin_assume is supported, and it
isn't. Similarly for __builtin_addressof.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk