C++ unique_ptr compiler error because of importing codes from VS2013
preview to VS2012
I have used the std::unique_ptr in my previous codes in Visual studio 2013
preview, and I don't have the problems there. For my recent project case,
it is compiler error less in debugging in visual studio 2012. So now I
only got the following errors
This is the line that having the issue:
std::unique_ptr<MyClass> classHolder;
The following are what the compiler says
'unique_ptr' : is not a member of 'std'
syntax error : missing ';' before '<'
missing type specifier - int assumed. Note: C++ does not support
default-int
unexpected token(s) preceding ';'
Any thought on how can I resolve this issue?
No comments:
Post a Comment