mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added #pragma to avoid an inappropriate warning from visual studio 2012
This commit is contained in:
parent
dd054907f6
commit
bcf274d6ac
@ -4,6 +4,12 @@
|
||||
#error "You aren't supposed to directly #include this file. #include <dlib/any.h> 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
|
||||
|
Loading…
Reference in New Issue
Block a user