Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::result_of and pure virtual functor leads to compile error
From: Eric Niebler (eniebler_at_[hidden])
Date: 2013-04-29 19:53:05


On 4/29/2013 12:08 PM, oswin krause wrote:
> Hi list,
>
> I am necountering an error when trying to use boost::result_of on a pure
> virtual base class.
>
> minimal example:
>
> struct Test{
> typedef int result_type;
> virtual int operator()(int)=0;
> };
> typedef boost::result_of<Test(int)>::type type;

This is supposed to work:

  typedef boost::result_of<Test&(int)>::type type;

...but I see it doesn't. Can you file a bug?

Thanks,

-- 
Eric Niebler
Boost.org
http://www.boost.org

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