Commit cc387727 authored by Fm's avatar Fm

#pragma warning moved to dnn.h

parent 2e741703
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
#ifndef DLIB_DNn_ #ifndef DLIB_DNn_
#define DLIB_DNn_ #define DLIB_DNn_
// DNN module uses template-based network declaration that leads to very long
// type names. Visual Studio will produce Warning C4503 in such cases
#ifdef _MSC_VER
# pragma warning( disable: 4503 )
#endif
#include "dnn/tensor.h" #include "dnn/tensor.h"
#include "dnn/input.h" #include "dnn/input.h"
#include "dnn/layers.h" #include "dnn/layers.h"
......
...@@ -23,12 +23,6 @@ ...@@ -23,12 +23,6 @@
the IEEE Conference on Computer Vision and Pattern Recognition. 2015. the IEEE Conference on Computer Vision and Pattern Recognition. 2015.
*/ */
// DNN module uses template-based network declaration that leads to very long
// type names. Visual Studio will produce Warning C4503 in such cases
#ifdef _MSC_VER
# pragma warning( disable: 4503 )
#endif
#include <dlib/dnn.h> #include <dlib/dnn.h>
#include <iostream> #include <iostream>
#include <dlib/data_io.h> #include <dlib/data_io.h>
......
...@@ -10,12 +10,6 @@ ...@@ -10,12 +10,6 @@
- Accessing and configuring layers in a network - Accessing and configuring layers in a network
*/ */
// DNN module uses template-based network declaration that leads to very long
// type names. Visual Studio will produce Warning C4503 in such cases
#ifdef _MSC_VER
# pragma warning( disable: 4503 )
#endif
#include <dlib/dnn.h> #include <dlib/dnn.h>
#include <iostream> #include <iostream>
#include <dlib/data_io.h> #include <dlib/data_io.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment