|
Boost Users : |
Subject: Re: [Boost-users] [function] How to use function with templated member functions
From: Christian Henning (chhenning_at_[hidden])
Date: 2011-12-06 09:48:28
Hi Nathan,
>
> Your code compiles fine for me on GCC 4.6. I'm not sure why it doesn't work
> with Visual Studio.
Interesting. I was just thinking that my syntax is wrong.
>
> Perhaps you can try wrapping the function pointers with boost::mem_fn(),
> like this:
>
> _read_function = boost::mem_fn(&my_reader::read_full<int>);
>
> Maybe that helps.
Yes, that helped! Thanks a lot.
Regards,
Christian
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