From cb7cfec182b78a2da1a44d37b36bb66fdfb25ba3 Mon Sep 17 00:00:00 2001 From: Davis King <davis@dlib.net> Date: Thu, 22 Sep 2011 01:31:02 -0400 Subject: [PATCH] changed to avoid a compiler error --- dlib/svm/sequence_labeler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/svm/sequence_labeler.h b/dlib/svm/sequence_labeler.h index 37a6255b..89fcc191 100644 --- a/dlib/svm/sequence_labeler.h +++ b/dlib/svm/sequence_labeler.h @@ -65,7 +65,7 @@ namespace dlib > struct hrlh_helper { - typedef double type; + typedef char type; }; template <typename T> @@ -88,7 +88,7 @@ namespace dlib }; template <typename T> - struct has_reject_labeling <T,typename dlib::enable_if_c<sizeof(dlib::impl::has_reject_labeling_helper<T>(2.2)) == 1 >::type > + struct has_reject_labeling <T,typename dlib::enable_if_c<sizeof(dlib::impl::has_reject_labeling_helper<T>('a')) == 1 >::type > { static const bool value = true; }; -- 2.18.0