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
08db55fb
Commit
08db55fb
authored
7 years ago
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: add CV_CXX_11 flag to cvdef.h
parent
3c748ccf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+14
-0
utility.hpp
modules/core/include/opencv2/core/utility.hpp
+2
-2
how_to_use_OpenCV_parallel_for_.cpp
..._OpenCV_parallel_for_/how_to_use_OpenCV_parallel_for_.cpp
+1
-1
No files found.
modules/core/include/opencv2/core/cvdef.h
View file @
08db55fb
...
...
@@ -358,6 +358,20 @@ Cv64suf;
#endif
/****************************************************************************************\
* C++ 11 *
\****************************************************************************************/
#ifndef CV_CXX_11
# if __cplusplus >= 201103L || defined(_MSC_VER) && _MSC_VER >= 1600
# define CV_CXX_11 1
# endif
#else
# if CV_CXX_11 == 0
# undef CV_CXX_11
# endif
#endif
/****************************************************************************************\
* C++ Move semantics *
\****************************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
modules/core/include/opencv2/core/utility.hpp
View file @
08db55fb
...
...
@@ -56,7 +56,7 @@
#include "opencv2/core.hpp"
#include <ostream>
#if
__cplusplus >= 201103L
#if
def CV_CXX_11
#include <functional>
#endif
...
...
@@ -482,7 +482,7 @@ public:
*/
CV_EXPORTS
void
parallel_for_
(
const
Range
&
range
,
const
ParallelLoopBody
&
body
,
double
nstripes
=-
1.
);
#if
__cplusplus >= 201103L
#if
def CV_CXX_11
class
ParallelLoopBodyLambdaWrapper
:
public
ParallelLoopBody
{
private
:
...
...
This diff is collapsed.
Click to expand it.
samples/cpp/tutorial_code/core/how_to_use_OpenCV_parallel_for_/how_to_use_OpenCV_parallel_for_.cpp
View file @
08db55fb
...
...
@@ -102,7 +102,7 @@ int main()
double
t1
=
(
double
)
getTickCount
();
#if
__cplusplus >= 201103L
#if
def CV_CXX_11
//! [mandelbrot-parallel-call-cxx11]
parallel_for_
(
Range
(
0
,
mandelbrotImg
.
rows
*
mandelbrotImg
.
cols
),
[
&
](
const
Range
&
range
){
...
...
This diff is collapsed.
Click to expand it.
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