the code snippet fail in Nov 2012 CTP#include <memory>#include <string>template<typename T, typename ...Args>std::unique_ptr<T> make_unique( Args&& ...args ) { return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );}int main() { auto p = make_unique<std::string>(std::string("foobar")); return 0;}================================output:error C2065: 'basic_string<char,std::char_traits<char>,std::allocator<char> >' : undeclared identifiererror C2974: 'std::forward' : invalid template argument for '_Ty', type expected
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Locale
Please wait...