multi_index in managed_shared_memory

Hi All, I'm trying to build a multi_index in managed shared memory with two (or more) hashed index but I get an "is an amiguous base of" error. I've already done that with one hash_uniq and a sequenced index and everything work fine. With two hashed index i get. boost/interprocess/detail/mpl.hpp:74:55: error:
‘boost::multi_index::detail::hashed_index_node_impl<boost::interprocess::allocator<char, boost::interprocess::segment_manager<char, boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>, boost::interprocess::iset_index> > >’ is an ambiguous base of ‘boost::multi_index::detail::hashed_index_node<boost::multi_index::detail::hashed_index_node<boost::multi_index::detail::index_node_base<element, boost::interprocess::allocator<element, boost::interprocess::segment_manager<char, boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>, boost::interprocess::iset_index> > > > >’ static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t);
With a hashed and an ordered index i get. boost/multi_index_container.hpp:161:52: error: no type named
‘final_allocator_type’ in ‘boost::multi_index::multi_index_container< ...
and it ask me to attach the preprocessed file to my bug report. This is compiled on linux with gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) Should I open a bug report ? Am I doing something wrong ? Thanks a lot. Seb

Sebastien Nobert <sebastien.nobert <at> gmail.com> writes:
Hi All, I'm trying to build a multi_index in managed shared memory with two (or more) hashed index but I get an "is an amiguous base of" error. I've already done that with one hash_uniq and a sequenced index and everything work fine. With two hashed index i get. boost/interprocess/detail/mpl.hpp:74:55: error: 'boost::multi_index::detail::hashed_index_node_impl<... >' is an ambiguous base of 'boost::multi_index::detail::hashed_index_node<...>' static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t);
This is indeed a bug. Good news is the bug's been (unintentionally) fixed in Boost 1.56. In the mean time, could you please try the attached patch on hashed_index.hpp and report back if the problem's gone?
With a hashed and an ordered index i get. boost/multi_index_container.hpp:161:52: error: no type named 'final_allocator_type' in 'boost::multi_index::multi_index_container< ...
I can't reproduce that one. Could you please elaborate or provide a concrete test case?
Should I open a bug report ? Am I doing something wrong ?
Please do. I don't think you're doing anything wrong, but I can't locate your second failure. Thank you, Joaquín M López Muñoz Telefónica Digital ________________________________ Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at: http://www.tid.es/ES/PAGINAS/disclaimer.aspx

Hi Joaquin, I was hoping that you would answer. The patch work. Thanks a lot. For the other bug, forget it I was just missing the ordered_index.hpp include. Thanks again, Seb On Tue, Dec 10, 2013 at 4:17 PM, JOAQUIN M. LOPEZ MUÑOZ <joaquin@tid.es>wrote:
Sebastien Nobert <sebastien.nobert <at> gmail.com> writes:
Hi All,
I'm trying to build a
multi_index in managed shared memory with two (or more) hashed index but
I get an "is an amiguous base of" error. I've already done that with
one hash_uniq and a sequenced index and everything work fine.
With two hashed index i get.
boost/interprocess/detail/mpl.hpp:74:55: error:
‘boost::multi_index::detail::hashed_index_node_impl<... >’ is
an ambiguous base of
‘boost::multi_index::detail::hashed_index_node<...>’
static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t);
This is indeed a bug. Good news is the bug’s been (unintentionally) fixed
in Boost 1.56. In the mean time, could you please try the attached patch
on hashed_index.hpp and report back if the problem’s gone?
With a hashed and an ordered index i get.
boost/multi_index_container.hpp:161:52: error: no type named
‘final_allocator_type’ in ‘boost::multi_index::multi_index_container< ...
I can’t reproduce that one. Could you please elaborate or provide a concrete
test case?
Should I open a bug report ? Am I doing something wrong ?
Please do. I don’t think you’re doing anything wrong, but I can’t locate
your second failure.
Thank you,
Joaquín M López Muñoz
Telefónica Digital
------------------------------
Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at: http://www.tid.es/ES/PAGINAS/disclaimer.aspx
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Tue, Dec 10, 2013 at 09:49:31AM -0500, Sebastien Nobert wrote:
Hi All,
Hi and thank you for the 4.3 megabytes of preprocessed data attached to your mail. My mail spool directory was feeling a bit lonely. Did the library really instruct you to send this to thousands of people all over the world, or did it really mean for you to attach it to a Trac bug ticket, or at least compress it first? -- Lars Viklund | zao@acc.umu.se

Thanks Lars for the heads-up. This wont happen again. On Tue, Dec 10, 2013 at 6:13 PM, Lars Viklund <zao@acc.umu.se> wrote:
On Tue, Dec 10, 2013 at 09:49:31AM -0500, Sebastien Nobert wrote:
Hi All,
Hi and thank you for the 4.3 megabytes of preprocessed data attached to your mail. My mail spool directory was feeling a bit lonely.
Did the library really instruct you to send this to thousands of people all over the world, or did it really mean for you to attach it to a Trac bug ticket, or at least compress it first?
-- Lars Viklund | zao@acc.umu.se _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
JOAQUIN M. LOPEZ MUÑOZ
-
Lars Viklund
-
Sebastien Nobert