Boost logo

Boost :

From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-04-06 10:02:31


Xavier Warin wrote:
> It compiles with GCC. It compiles with KCC if only one definition is
> used for get_val.
> Do you think that it 's a KCC bug or a BPL one ?

Neither. It's a bug in GCC that it compiles.

> // mapping des classes
> Data_class.def( &Data::get_val , "get_val" );

You must specify which version you want by a cast:

    Data_class.def( (double (Data::*)())&Data::get_val , "get_val" );
    Data_class.def( (double (Data::*)(double))&Data::get_val , "get_val"
);

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk