Regarding the use of shared_pointers in a c++ program, I have declared the #include <memory>
and then called upon the following std::shared_ptr<int>(new int(5))
it refuses to compile saying that
error: 'shared_ptr' is not a member of 'std'
or alternatively
Symbol 'shared_ptr' could not be resolved
Can anyone tell me why this is happening? from what i read, shared point should be defined in std or boost libraries and i have tried them both