aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-11-21 03:04:18 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-12-01 10:41:54 +0000
commit40f51a63c8e7258db15269427ae4fe1ad199c550 (patch)
tree353253a41863966995a45556731e7181a643c003 /tests/main.cpp
parent327800401c4185d98fcc01b9c9efbc038a4228ed (diff)
downloadComputeLibrary-40f51a63c8e7258db15269427ae4fe1ad199c550.tar.gz
Update default C++ standard to C++14
(3RDPARTY_UPDATE) Resolves: COMPMID-3849 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I6369f112337310140e2d6c8e79630cd11138dfa0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4544 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index f0d5df7d84..46a081b6c8 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -21,7 +21,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#include "support/MemorySupport.h"
#include "support/StringSupport.h"
#include "tests/AssetsLibrary.h"
#include "tests/framework/DatasetModes.h"
@@ -166,20 +165,20 @@ int main(int argc, char **argv)
Scheduler::get().set_num_threads(threads->value());
// Create CPU context
- auto cpu_ctx = support::cpp14::make_unique<RuntimeContext>();
+ auto cpu_ctx = std::make_unique<RuntimeContext>();
cpu_ctx->set_scheduler(&Scheduler::get());
// Track CPU context
- auto cpu_ctx_track = support::cpp14::make_unique<ContextSchedulerUser>(cpu_ctx.get());
+ auto cpu_ctx_track = std::make_unique<ContextSchedulerUser>(cpu_ctx.get());
// Create parameters
- parameters = support::cpp14::make_unique<ParametersLibrary>();
+ parameters = std::make_unique<ParametersLibrary>();
parameters->set_cpu_ctx(std::move(cpu_ctx));
#ifdef ARM_COMPUTE_GC
// Setup OpenGL context
{
- auto gles_ctx = support::cpp14::make_unique<GCRuntimeContext>();
+ auto gles_ctx = std::make_unique<GCRuntimeContext>();
ARM_COMPUTE_ERROR_ON(gles_ctx == nullptr);
{
// Legacy singletons API: This has been deprecated and the singletons will be removed
@@ -312,8 +311,8 @@ int main(int argc, char **argv)
return 0;
}
- library = support::cpp14::make_unique<AssetsLibrary>(assets->value(), seed->value());
- fixed_library = support::cpp14::make_unique<AssetsLibrary>(assets->value(), fixed_seed);
+ library = std::make_unique<AssetsLibrary>(assets->value(), seed->value());
+ fixed_library = std::make_unique<AssetsLibrary>(assets->value(), fixed_seed);
if(!parser.validate())
{