Boost logo

Boost Users :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2007-02-28 14:55:12


Hi Manuel,

----- Mensaje original -----
De: Manuel Jung <gzahl_at_[hidden]>
Fecha: Miércoles, Febrero 28, 2007 7:38 pm
Asunto: [Boost-users] [Boost.MultiIndex] Problem using data element
from derived class as key
Para: boost-users_at_[hidden]

> Hi,
>
> Im having a problem. I derive class B from class A. class a has
> the member > A::id. I want to use this one as key for my
> MultiIndexContainer. But i get the following compiling errors:
>
> test.cpp:41: Fehler: Templateargument »&A::id« konnte nicht in
> »unsigned int
> B::*« umgewandelt werden
> test.cpp:42: Fehler: Templateargument 2 ist ungültig
> test.cpp:43: Fehler: Templateargument 1 ist ungültig
> test.cpp:44: Fehler: Templateargument 2 ist ungültig
>
> Sorry it on german.
> A testfile for reproducing my problem is attached.
> Can someone help? thanks..

This is a fairly recurring question. Please read
about it at

http://lists.boost.org/boost-users/2006/12/24042.php

Is everything clear after reading the above?

BTW, what happened to your SIGABRT problem? you
promised to report back after investigating the
safe mode and invariant checking macros issue :)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net