[multi_index] inherit from a multi_index

Hi, I would like to know if it is safe to create a struct and make it inherit from a multi_index. Actually I already tried but I got this error: /usr/include/boost/multi_index_container.hpp:204: warning: base class 'struct boost::multi_index::detail::header_holder<boost::multi_index::detail::ordered_index_node<boost::multi_index::detail::index_node_base<vcsn::InitialValue<vcsn::rat::exp<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, float> > > >, boost::multi_index::multi_index_container< [...] >, boost::multi_index::indexed_by<boost::multi_index::ordered_unique<boost::multi_index::member<vcsn::InitialValue<vcsn::rat::exp<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, float> >, [...] >' should be explicitly initialized in the copy constructor Is it an issue due to Boost or because I'm doing something really bad? Thanks, -- Guillaume Lazzara Epita CSI 2008

Helo Guillaume ----- Mensaje original ----- De: Guillaume Lazzara <glazzara@gmail.com> Fecha: Miércoles, Abril 25, 2007 7:33 pm Asunto: [Boost-users] [multi_index] inherit from a multi_index Para: boost-users@lists.boost.org
Hi,
I would like to know if it is safe to create a struct and make it inherit from a multi_index.
Yes, it is perfectly safe.
Actually I already tried but I got this error:
/usr/include/boost/multi_index_container.hpp:204: warning: base class 'struct boost::multi_index::detail::header_holder<...>' should be explicitly initialized in the copy constructor
Is it an issue due to Boost or because I'm doing something really bad?
This is a spurious warning emitted by an overzealous compiler: are you using gcc with -W perhaps? If so, the issue has been recently reported and fixed: http://lists.boost.org/boost-users/2007/02/25769.php Can you grab a snapshot of RC_1_34_0 from http://engineering.meta-comm.com/boost/snapshot/ boost-CVS-RC_1_34_0.tar.bz2 and report whether the warning message goes away? Thank you! Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

This is a spurious warning emitted by an overzealous compiler: are you using gcc with -W perhaps? If so, the issue has been recently reported and fixed:
Indeed, I should take a look at the previous threads next time.
Can you grab a snapshot of RC_1_34_0 from http://engineering.meta-comm.com/boost/snapshot/ boost-CVS-RC_1_34_0.tar.bz2
It works, I don't have warnings anymore. Thank you very much! -- Guillaume Lazzara Epita CSI 2008
participants (2)
-
"JOAQUIN LOPEZ MU?Z"
-
Guillaume Lazzara