26 Apr
2018
26 Apr
'18
10:28 a.m.
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/cd02e53e0d0f2884c5742899c84... which then makes Boost think that __builtin_assume is supported, and it isn't. Similarly for __builtin_addressof.