Move the destructor definition out of the header (C4150)

This commit is contained in:
Maksym Walczak 2022-01-21 16:34:02 +01:00
parent 690fa7909b
commit 2a85afc405
2 changed files with 6 additions and 4 deletions

View File

@ -36,9 +36,6 @@ class PoseTrackingImpl {
public: public:
PoseTrackingImpl(const std::string& calculatorGraphConfigFile) { PoseTrackingImpl(const std::string& calculatorGraphConfigFile) {
auto status = initialize(calculatorGraphConfigFile); auto status = initialize(calculatorGraphConfigFile);
if (!status.ok()) {
LOG(WARNING) << "Warning: " << status;
}
} }
absl::Status initialize(const std::string& calculatorGraphConfigFile) { absl::Status initialize(const std::string& calculatorGraphConfigFile) {
@ -162,4 +159,9 @@ cv_wrapper::Mat PoseTracking::lastSegmentedFrame() {
return cv_wrapper::Mat(result.rows, result.cols, result.data); return cv_wrapper::Mat(result.rows, result.cols, result.data);
} }
PoseTracking::~PoseTracking()
{
delete mImplementation;
}
} // namespace nimagna } // namespace nimagna

View File

@ -103,7 +103,7 @@ class DLLEXPORT PoseTracking {
}; };
PoseTracking(const char* calculatorGraphConfigFile); PoseTracking(const char* calculatorGraphConfigFile);
~PoseTracking() { delete mImplementation; } ~PoseTracking();
bool processFrame(const cv_wrapper::Mat& inputRGB8Bit); bool processFrame(const cv_wrapper::Mat& inputRGB8Bit);
cv_wrapper::Mat lastSegmentedFrame(); cv_wrapper::Mat lastSegmentedFrame();