this works:
shared_ptr<ofxDTangibleBase> sp(new ofxDTangibleBase(colorBlob, "ofxDTangibleBase", detectColor, workImg));
But if i do it with make_shared:
shared_ptr<ofxDTangibleBase> sp = make_shared<ofxDTangibleBase>(colorBlob, "ofxDTangibleBase", detectColor, workImg);
I get ''ofxDTangibleBase' does not refer to a value' I have looked for a fix but i found people with problems like having to many parameters etc.
Do i overlook something?
Edit:
the constructor looks like this:
ofxDTangibleBase(const ofxCvBlob& base, const char *className, ofxDDetectColor *detectColor, const ofxCvGrayscaleImage *thresholdImage) : ofxCvBlob(base) {
And the class extends another class:
class ofxDTangibleBase : public ofxCvBlob {