Talk:More C++ Idioms/Type Erasure

Source: http://zao.se/~zao/boostcon/10/2010_presentations/thu/type_erasure_pattern_boostcon.pdf

Cimiak (discuss • contribs) 12:32, 28 May 2012 (UTC)

Bug?
In some places in the code examples std::forward is used on arguments of the type _Ty. It looks like it's a bug since to my understanding no perfect forwarding is happening unless the arguments were passed by &&. I.e. this should've been something like

In addition, using identifiers like `_Ty` is UB since they are reserved.

93.185.28.187 (discuss) 17:06, 26 February 2018 (UTC)