Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 44109d3

Browse files
committed
dnn: build fix 'error: 'experimental_dnn_v1' is not a namespace-name'
1 parent c481615 commit 44109d3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

modules/dnn/include/opencv2/dnn/dict.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
//
4040
//M*/
4141

42-
#ifndef OPENCV_DNN_DNN_DICT_HPP
43-
#define OPENCV_DNN_DNN_DICT_HPP
44-
4542
#include <opencv2/core.hpp>
4643
#include <map>
4744
#include <ostream>
4845

4946
#include <opencv2/dnn/dnn.hpp>
5047

48+
#ifndef OPENCV_DNN_DNN_DICT_HPP
49+
#define OPENCV_DNN_DNN_DICT_HPP
50+
5151
namespace cv {
5252
namespace dnn {
5353
CV__DNN_EXPERIMENTAL_NS_BEGIN

modules/dnn/include/opencv2/dnn/dnn.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@
4646
#include <opencv2/core.hpp>
4747

4848
#if !defined CV_DOXYGEN && !defined CV_DNN_DONT_ADD_EXPERIMENTAL_NS
49-
#define CV__DNN_EXPERIMENTAL_NS_USE using namespace experimental_dnn_v1;
5049
#define CV__DNN_EXPERIMENTAL_NS_BEGIN namespace experimental_dnn_v1 {
5150
#define CV__DNN_EXPERIMENTAL_NS_END }
51+
namespace cv { namespace dnn { namespace experimental_dnn_v1 { } using namespace experimental_dnn_v1; }}
5252
#else
53-
#define CV__DNN_EXPERIMENTAL_NS_USE
5453
#define CV__DNN_EXPERIMENTAL_NS_BEGIN
5554
#define CV__DNN_EXPERIMENTAL_NS_END
5655
#endif
@@ -59,7 +58,6 @@
5958

6059
namespace cv {
6160
namespace dnn {
62-
CV__DNN_EXPERIMENTAL_NS_USE
6361
CV__DNN_EXPERIMENTAL_NS_BEGIN
6462
//! @addtogroup dnn
6563
//! @{

0 commit comments

Comments
 (0)