From bcf274d6ac0f2db424283ff060526c784d8244ab Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 13 Oct 2012 15:49:56 -0400 Subject: [PATCH] Added #pragma to avoid an inappropriate warning from visual studio 2012 --- dlib/any/any_function_impl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlib/any/any_function_impl.h b/dlib/any/any_function_impl.h index d8b5503a4..fb44f84df 100644 --- a/dlib/any/any_function_impl.h +++ b/dlib/any/any_function_impl.h @@ -4,6 +4,12 @@ #error "You aren't supposed to directly #include this file. #include instead." #endif +#ifdef _MSC_VER +// When using visual studio 2012, disable the warning "warning C4180: qualifier applied to function type has no meaning; ignored" +// that you get about some template expansions applying & to function types. +#pragma warning(disable : 4180) +#endif + #ifdef DLIB_ANY_FUNCTION_RETURN // This file contains the body of the any_function class. We use the