From 01fa1f223e2df71ff3c5fdd735c8aeb224c99b09 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 13 Nov 2013 18:50:47 -0500 Subject: [PATCH] Fixed a compile time bug that could occur when wide character strings were serialized. --- dlib/serialize.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dlib/serialize.h b/dlib/serialize.h index f4dce9e3d..1e10bdced 100644 --- a/dlib/serialize.h +++ b/dlib/serialize.h @@ -652,6 +652,26 @@ namespace dlib std::istream& in ); + inline void serialize ( + const std::wstring& item, + std::ostream& out + ); + + inline void deserialize ( + std::wstring& item, + std::istream& in + ); + + inline void serialize ( + const ustring& item, + std::ostream& out + ); + + inline void deserialize ( + ustring& item, + std::istream& in + ); + template < typename T >