Boost logo

Boost :

Subject: Re: [boost] [result_of] fails with clan (C++11)
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-11-28 15:46:18

> You are asking result_of to compute the result of calling a unary
> function that takes an X& with zero arguments. That's nonsensical. If
> you intend to call it with an X&, then ask it what the result is when
> called with an X&:
> boost::result_of< Fn(X&) >::type
> This should correctly report void regardless of whether result_of uses
> decltype or the TR1 result_of protocol.

OK, I got it.
It's strange that clang 3.2 (c++11), gcc, ontel and msvc compile the code
without errors on Loinux and Windows.

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