I am trying to define a vector of shared_ptr in my code inside Eclipse Luna CDT. But I am getting compiling error. Any Idea why?
Here is my code:
#include "Object.h"
#include <vector>
#include <memory>
using namespace std;
namespace daemonWorld {
class Holder: public Object {
int holdWeight = 0;
int holdValume = 0;
shared_ptr<Object> test;
std::vector<shared_ptr<Object>> objects;
In this line I am getting Symbol 'shared_ptr' could not be resolved. Should I include anything more beside memory? g++ options are
D_GXX_EXPERIMENTAL_CXX0X__ -D__Test=1 -D__GXX_EXPERIMENTAL_CXX0X__=1 -I/usr/include/cppunit -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11
The code is running but the eclipse compiler is showing an error.