boost::result_of and pure virtual functor leads to compile error

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

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
::type type;
This is supposed to work:
typedef boost::result_of

Done. any intermediate workarounds? On 30.04.2013 01:53, Eric Niebler wrote:
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
::type type; This is supposed to work: typedef boost::result_of
::type type; ...but I see it doesn't. Can you file a bug?
Thanks,
participants (2)
-
Eric Niebler
-
oswin krause