Boost logo

Boost Users :

Subject: Re: [Boost-users] Type deduction
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2012-03-01 04:43:08

On Thu, Mar 1, 2012 at 9:33 AM, Robert Jones <robertgbjones_at_[hidden]>wrote:

> Is there anything in Boost to help with the type deduction of simple
> arithmetic
> expressions?
> Essentially a C++03 version of
> template <typename T, typename U> struct deduce { typedef decltype( T / U
> ) type; };
> (I know that wasn't valid code, it's just for exposition)
Why does that always happen....? Seconds after you hit send you find the

Boost.TypeOf is exactly what I'm looking for.

Thx, and sorry for the noise!

- Rob.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at