Delete copy constructor and assignment operator for TessBaseAPI (fix issue #874)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-10-21 13:12:31 +02:00 committed by zdenop
parent e3441f0ced
commit 4bbfabaa67

View File

@ -92,6 +92,9 @@ class TESS_API TessBaseAPI {
public:
TessBaseAPI();
virtual ~TessBaseAPI();
// Copy constructor and assignment operator are currently unsupported.
TessBaseAPI(TessBaseAPI const&) = delete;
TessBaseAPI& operator=(TessBaseAPI const&) = delete;
/**
* Returns the version identifier as a static string. Do not delete.