Blame common/Functional.h
|
Packit |
1244b8 |
/*
|
|
Packit |
1244b8 |
* Copyright (C) 2016 Intel Corporation. All rights reserved.
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1244b8 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1244b8 |
* You may obtain a copy of the License at
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1244b8 |
*
|
|
Packit |
1244b8 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1244b8 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1244b8 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1244b8 |
* See the License for the specific language governing permissions and
|
|
Packit |
1244b8 |
* limitations under the License.
|
|
Packit |
1244b8 |
*/
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
/* orignal version of this file have been defined in VideoCommonDefs.h,
|
|
Packit |
1244b8 |
but it will introduce compile error in gtest, so we define it here.
|
|
Packit |
1244b8 |
it's reasonable since not all files need bind
|
|
Packit |
1244b8 |
*/
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
#ifndef Functional_h
|
|
Packit |
1244b8 |
#define Functional_h
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
#if __cplusplus > 199711L
|
|
Packit |
1244b8 |
#include <functional>
|
|
Packit |
1244b8 |
#else
|
|
Packit |
1244b8 |
#include <tr1/functional>
|
|
Packit |
1244b8 |
namespace std {
|
|
Packit |
1244b8 |
using std::tr1::bind;
|
|
Packit |
1244b8 |
using std::tr1::function;
|
|
Packit |
1244b8 |
using std::tr1::ref;
|
|
Packit |
1244b8 |
namespace placeholders {
|
|
Packit |
1244b8 |
using std::tr1::placeholders::_1;
|
|
Packit |
1244b8 |
using std::tr1::placeholders::_2;
|
|
Packit |
1244b8 |
}
|
|
Packit |
1244b8 |
}
|
|
Packit |
1244b8 |
#endif // __cplusplus > 199711L
|
|
Packit |
1244b8 |
|
|
Packit |
1244b8 |
#endif // Functional_h
|