Boost logo

Boost :

Subject: Re: [boost] [test] showtopper for release 1.49 - std::forward not found when compiling with clang 3.0 c++0x mode.
From: Michel Morin (mimomorin_at_[hidden])
Date: 2012-01-03 04:23:51


Vicente J. Botet Escriba wrote:
> I have added
>
> #include <utility>
>
> without success.
>
> I guess that the standard library doesn't provides this function even if the
> compiler provides rvalue references.

Right.
This kind of problem happens when a C++03 standard library is used with
a C++11 compiler. Though I'm not confident that it's worth supporting,
it is pretty easy to support it, since we are free to implement our own
`forward` function. For example, we can use `boost::forward` in
boost/move/move.hpp.

Regards,
Michel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk