mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
Include <functional> (gcc7 was complaining here)
This commit is contained in:
parent
0608eb1ee0
commit
079406f615
@ -10,6 +10,7 @@
|
|||||||
/*
|
/*
|
||||||
Parallel thread, Mutex,
|
Parallel thread, Mutex,
|
||||||
*/
|
*/
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
namespace netgen
|
namespace netgen
|
||||||
{
|
{
|
||||||
@ -95,9 +96,9 @@ void ParallelFor( int first, int next, const TFunc & f )
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef void (*TaskManager)(function<void(int,int)>);
|
typedef void (*TaskManager)(std::function<void(int,int)>);
|
||||||
|
|
||||||
inline void DummyTaskManager (function<void(int,int)> func)
|
inline void DummyTaskManager (std::function<void(int,int)> func)
|
||||||
{
|
{
|
||||||
func(0,2);
|
func(0,2);
|
||||||
func(1,2);
|
func(1,2);
|
||||||
|
Loading…
Reference in New Issue
Block a user