Hi,
I have a sq.h include file which containing following code,
[CODE=cpp]struct FRSDK_SHARED SampleQuality
{
SampleQuality( bool enrollmentOk, bool verificationOk, float q,
const std::string& hint);
const bool goodForEnrollme nt;
const bool goodForVerifica tion;
const float quality;
const std::string hint;
};
class FRSDK_SHARED SampleEvaluator
{
public:
SampleEvaluator ( const Configuration&) ;
SampleEvaluator ( const SampleEvaluator &);
SampleEvaluator & operator=( const SampleEvaluator &);
~SampleEvaluato r();
SampleQuality evaluate(/** the Image to evaluate */
const Image& img,
/** location of the eyes */
const Eyes::Location& eloc);
private:
class Implementation;
CountedPtr<Impl ementation> imp;
};
}
#endif[/CODE]
I include the sq.h file and I have write the following code in my CPP file,
FRsdk::Eyes::Lo cation eyesLoc = eyesLocations.f ront();
FRsdk::SampleQu ality sampleQuality = FRsdk::SampleEv aluator::evalua te( img, eyesLoc);
The following error are come,
'FRsdk::SampleQ uality' : no appropriate default constructor available
'FRsdk::SampleE valuator::evalu ate' : illegal call of non-static member function
what is the problem?
I have a sq.h include file which containing following code,
[CODE=cpp]struct FRSDK_SHARED SampleQuality
{
SampleQuality( bool enrollmentOk, bool verificationOk, float q,
const std::string& hint);
const bool goodForEnrollme nt;
const bool goodForVerifica tion;
const float quality;
const std::string hint;
};
class FRSDK_SHARED SampleEvaluator
{
public:
SampleEvaluator ( const Configuration&) ;
SampleEvaluator ( const SampleEvaluator &);
SampleEvaluator & operator=( const SampleEvaluator &);
~SampleEvaluato r();
SampleQuality evaluate(/** the Image to evaluate */
const Image& img,
/** location of the eyes */
const Eyes::Location& eloc);
private:
class Implementation;
CountedPtr<Impl ementation> imp;
};
}
#endif[/CODE]
I include the sq.h file and I have write the following code in my CPP file,
FRsdk::Eyes::Lo cation eyesLoc = eyesLocations.f ront();
FRsdk::SampleQu ality sampleQuality = FRsdk::SampleEv aluator::evalua te( img, eyesLoc);
The following error are come,
'FRsdk::SampleQ uality' : no appropriate default constructor available
'FRsdk::SampleE valuator::evalu ate' : illegal call of non-static member function
what is the problem?
Comment