4 Jun
2010
4 Jun
'10
2:49 p.m.
Steve Lorimer wrote:
Oooh, what's perfect forwarding?
C++1x intends to solve "the forwarding problem." Though others could give you a much clearer picture, I'm aware of two mechanisms to support this: variadic templates, allowing you to iterate through template arguments in a type-safe way, and a new parameter-passing mechanism that avoids the const ref vs. non-const ref overload explosion. I haven't played with either MSVC 10 or gcc 4.5, but I think you can turn on support for (a subset of) C++1x features in these compilers.