Boost logo

Boost Users :

Subject: [Boost-users] Compile error in boost atomic on iOS
From: Olivier Tristan (o.tristan_at_[hidden])
Date: 2013-04-15 11:59:43


Hi Guys,

I'm trying to use boost lockfree and a fixed size queue on iOS and I got
some compile issue.
The target is an armV7 compiled with clang in c++11 mode from Xcode 4.6

Does this ring a bell to someone ?

Thanks,

In file included from /usr/local/include/boost/lockfree/queue.hpp:22:
In file included from
/usr/local/include/boost/lockfree/detail/atomic.hpp:39:
In file included from /usr/local/include/boost/atomic.hpp:12:
In file included from /usr/local/include/boost/atomic/atomic.hpp:16:
In file included from
/usr/local/include/boost/atomic/detail/platform.hpp:37:
In file included from
/usr/local/include/boost/atomic/detail/gcc-armv6plus.hpp:245:
/usr/local/include/boost/atomic/detail/cas32weak.hpp:892:21: error: invalid
operands to binary expression ('value_type' (aka
'boost::lockfree::detail::tagged_index') and 'value_type')
            if (tmp != expected) {
                ~~~ ^ ~~~~~~~~
/usr/local/include/boost/atomic/detail/cas32weak.hpp:905:5: note: in
instantiation of member function
'boost::atomics::detail::base_atomic<boost::lockfree::detail::tagged_index,
void, 4, false>::compare_exchange_strong' requested here
    BOOST_ATOMIC_DECLARE_BASE_OPERATORS
    ^
/usr/local/include/boost/atomic/detail/base.hpp:44:16: note: expanded from
macro 'BOOST_ATOMIC_DECLARE_BASE_OPERATORS'
        return compare_exchange_strong(expected, desired, order,
calculate_failure_order(order)); \
               ^
/usr/local/include/boost/lockfree/queue.hpp:290:31: note: in instantiation
of member function
'boost::atomics::detail::base_atomic<boost::lockfree::detail::tagged_index,
void, 4, false>::compare_exchange_strong' requested here
                        tail_.compare_exchange_strong(tail, new_tail);
                              ^
/usr/local/include/boost/lockfree/queue.hpp:261:16: note: in instantiation
of function template specialization
'boost::lockfree::queue<StreamingCommand,
boost::lockfree::fixed_sized<true>, boost::lockfree::capacity<1024>,
boost::parameter::void_>::do_push<true>' requested here
        return do_push<true>(t);

-- 
Olivier Tristan


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