How to convert a pointer to member function type to a const member one
  Home FAQ Contact Sign in
comp.lang.c++.moderated only
 
Advanced search
POPULAR GROUPS

more...

 Up
How to convert a pointer to member function type to a const member one         

Group: comp.lang.c++.moderated · Group Profile
Author: mcostalba
Date: Apr 30, 2008 08:43

Hi all,

I have a problem.

What is the best way to get a type TC from a type T where

T is int(foo::*)(char)

and

TC is int(foo::*)(char) const

I have tried

typdef T const TC

but with no success.

Thanks
Marco

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
12 Comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Re: To convert or not to convert, that's the questioncomp.lang.clipper.visual-objects ·