Stronger no-strings enforcement for dlib functions.
This commit is contained in:
@ -16,6 +16,7 @@ struct CharPtrNoStringConversion
|
||||
char *ptr= nullptr;
|
||||
|
||||
operator char *() const noexcept { return ptr; }
|
||||
operator std::string () const= delete;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user