Boost logo

Boost Users :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2006-01-01 18:26:14


----- Mensaje original -----
De: Matt Steele <steelerm_at_[hidden]>
Fecha: Domingo, Enero 1, 2006 8:32 pm
Asunto: Re: [Boost-users] [multi_index] const_mem_fun with an inherited
        member function

[...]
> Your suggestion worked without any changes (runtime tested it
> with a few toy calls to insert()/find() ). However, if instead of
> invoking the global get<>() function template, I try to call the
> member function template,
>
> return t.get<N>();
>
> I get this compile error:
>
> error: invalid use of member (did you forget the '&' ?)
>
> Do you know if this code should compile? If not, is there a way
> to call
> a member function template in this context without relying on a
global
> function wrapper?

Try

  return t.template get<N>();

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