Skip to content

Commit 532885c

Browse files
committed
Merge pull request opencv#6607 from alalek:issue_6604
2 parents 89a1e80 + ff0601c commit 532885c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

modules/core/include/opencv2/core/cvstd.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767

6868
namespace cv
6969
{
70+
static inline uchar abs(uchar a) { return a; }
71+
static inline ushort abs(ushort a) { return a; }
72+
static inline unsigned abs(unsigned a) { return a; }
73+
static inline uint64 abs(uint64 a) { return a; }
74+
7075
using std::min;
7176
using std::max;
7277
using std::abs;
@@ -77,14 +82,6 @@ namespace cv
7782
using std::log;
7883
}
7984

80-
namespace std
81-
{
82-
static inline uchar abs(uchar a) { return a; }
83-
static inline ushort abs(ushort a) { return a; }
84-
static inline unsigned abs(unsigned a) { return a; }
85-
static inline uint64 abs(uint64 a) { return a; }
86-
}
87-
8885
#else
8986
namespace cv
9087
{

0 commit comments

Comments
 (0)