$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [LockFree] a queue of std::shared_ptr?
From: Scott Smedley (scott_at_[hidden])
Date: 2013-02-11 19:04:04
Hi all,
Is it possible to store std::shared_ptr objects in a boost::lockfree::queue?
eg. boost::lockfree::queue<std::shared_ptr<Message>> q;
gcc 4.7.2 with Boost 1.53.0 is giving a static assertion failure. It
wants: boost::has_trivial_destructor<T>::value and
boost::has_trivial_assign<T>::value
Any help would be muchly appreciated.
Scott.