[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
Helo Guillaume
----- Mensaje original -----
De: Guillaume Lazzara
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