From be1bc2571ff9dcf119959f750bda42b6cdefa3843273cae40243fd1e21e1445a Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 7 Jan 2026 04:30:31 -0500 Subject: [PATCH] Stronger no-strings enforcement for dlib functions. --- dlib/dlib.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/dlib/dlib.hh b/dlib/dlib.hh index 712d636..31a156c 100644 --- a/dlib/dlib.hh +++ b/dlib/dlib.hh @@ -16,6 +16,7 @@ struct CharPtrNoStringConversion char *ptr= nullptr; operator char *() const noexcept { return ptr; } + operator std::string () const= delete; }; #ifdef __cplusplus