-/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
void helper_tests::Init()
{
pagesize = (size_t)getpagesize();
- store.reset(new simgrid::mc::PageStore(50));
+ store = std::make_unique<simgrid::mc::PageStore>(50);
data = mmap(nullptr, getpagesize(), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
REQUIRE(store->size() == 0);
}