Boost logo

Boost :

Subject: Re: [boost] boost::bind, problem with result type deduction and calling conventions
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-03-03 10:33:20

> hi,
> anybody able to explain, why the code for the result type,
> related to special calling conventions defines an void
> return type ?
> template< class R, class T >
> struct add_cref< R (T::*) (), 1 >
> {
> typedef void type;
> };

This specialization's only purpose is to avoid the warning; whether the type
is void or something else doesn't matter. Ironically, it doesn't work on
recent versions on MSVC due to a compiler bug.

Boost list run by bdawes at, gregod at, cpdaniel at, john at