Boost logo

Boost :

Subject: Re: [boost] Status of (boost) lockfree?
From: Andrey Zhdanov (susuman_at_[hidden])
Date: 2010-03-10 18:42:33


 

> i don't have access to other compilers, so i need to rely on other people's
> report
>

Hello Tim,

MSVC 9.0 complains about lockfree/fifo - does not like tagged_ptr to have copy constructor:

 

1>e:\work\201003\10.lock_free\boost-lf\boost\atomic\detail\integral-casts.hpp(228) : error C2621: member 'boost::detail::atomic::platform_atomic<T>::e' of union 'boost::detail::atomic::platform_atomic<T>::<unnamed-tag>' has copy constructor

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\atomic\detail\base.hpp(63) : see reference to class template instantiation 'boost::detail::atomic::platform_atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\atomic.hpp(20) : see reference to class template instantiation 'boost::detail::atomic::internal_atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\lockfree\fifo.hpp(202) : see reference to class template instantiation 'boost::atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

 

Though, after commening copy contructor, there is another error:

 

1>e:\work\201003\10.lock_free\boost-lf\boost\atomic\detail\integral-casts.hpp(228) : error C2620: member 'boost::detail::atomic::platform_atomic<T>::e' of union 'boost::detail::atomic::platform_atomic<T>::<unnamed-tag>' has user-defined constructor or non-trivial default constructor

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\atomic\detail\base.hpp(63) : see reference to class template instantiation 'boost::detail::atomic::platform_atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\atomic.hpp(20) : see reference to class template instantiation 'boost::detail::atomic::internal_atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

1> e:\work\201003\10.lock_free\boost-lf\boost\lockfree\fifo.hpp(202) : see reference to class template instantiation 'boost::atomic<T>' being compiled

1> with

1> [

1> T=boost::lockfree::tagged_ptr<boost::lockfree::detail::fifo<EU_DATA,boost::lockfree::caching_freelist_t,std::allocator<EU_DATA>>::node>

1> ]

 

Thanks,

Andrey

 
                                               
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/201469228/direct/01/


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