From d4f7b4ad8b21f1af78e1bada3e0368c0c1304ad9 Mon Sep 17 00:00:00 2001 From: Francesco Gatti Date: Wed, 30 Mar 2022 22:14:06 +0200 Subject: [PATCH] remove using namespace useless --- include/tkDNN/pluginsRT/ReshapeRT.h | 1 - include/tkDNN/utils.h | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/tkDNN/pluginsRT/ReshapeRT.h b/include/tkDNN/pluginsRT/ReshapeRT.h index e56c79c..65d577d 100644 --- a/include/tkDNN/pluginsRT/ReshapeRT.h +++ b/include/tkDNN/pluginsRT/ReshapeRT.h @@ -5,7 +5,6 @@ #include #include #include -using namespace tk::dnn; namespace nvinfer1 { diff --git a/include/tkDNN/utils.h b/include/tkDNN/utils.h index 055ea67..607697a 100644 --- a/include/tkDNN/utils.h +++ b/include/tkDNN/utils.h @@ -27,10 +27,12 @@ -#if NV_TENSORRT_MAJOR > 7 -#define NOEXCEPT noexcept -#else -#define NOEXCEPT +#ifndef NOEXCEPT + #if NV_TENSORRT_MAJOR > 7 + #define NOEXCEPT noexcept + #else + #define NOEXCEPT + #endif #endif