Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a3ab6d14
Commit
a3ab6d14
authored
Oct 08, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CV_ENUM macro instability
parent
4be7619c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+4
-4
No files found.
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
a3ab6d14
...
...
@@ -90,7 +90,7 @@ private:
\*****************************************************************************************/
#define CV_ENUM(class_name, ...) \
class CV_EXPORTS class_name {\
namespace {
class CV_EXPORTS class_name {\
public:\
class_name(int val = 0) : _val(val) {}\
operator int() const {return _val;}\
...
...
@@ -116,12 +116,12 @@ public:\
private: class_name *_begin, *_end;\
};\
static Container all(){\
static
class_name
vals[] = {__VA_ARGS__};\
return Container(vals, sizeof(vals)/sizeof(vals[0]));\
static
int
vals[] = {__VA_ARGS__};\
return Container(
(class_name*)
vals, sizeof(vals)/sizeof(vals[0]));\
}\
private: int _val;\
};\
inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); }
inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); }
}
#define CV_FLAGS(class_name, ...) \
class CV_EXPORTS class_name {\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment