Skip to content

Commit 4ba0ed1

Browse files
committed
Adding missing assignment / constructor
for MSVC 10.
1 parent fcaf7e3 commit 4ba0ed1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

inc/dest/face/face_detector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ namespace dest {
4444
public:
4545
FaceDetector();
4646
~FaceDetector();
47+
FaceDetector(const FaceDetector &other);
48+
FaceDetector &operator=(const FaceDetector &other);
4749

4850
/**
4951
Load classifier from trained file.

src/face/face_detector.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ namespace dest {
3535
FaceDetector::~FaceDetector()
3636
{}
3737

38+
FaceDetector::FaceDetector(const FaceDetector &other)
39+
:_data(new data())
40+
{
41+
*_data = *other._data;
42+
}
43+
44+
FaceDetector &FaceDetector::operator=(const FaceDetector &other)
45+
{
46+
*_data = *other._data;
47+
return *this;
48+
}
49+
3850
bool FaceDetector::loadClassifiers(const std::string &frontalFaceClassifier, const std::string &eyeClassifier)
3951
{
4052
FaceDetector::data &data = *_data;

0 commit comments

Comments
 (0)