/**
* Pointer to data on the host.
*/
- std::unique_ptr<Number[], decltype(&free)> values;
+ std::unique_ptr<Number[], decltype(&std::free)> values;
/**
* Pointer to data on the device.
struct MemorySpaceData<Number, Host>
{
MemorySpaceData()
- : values(nullptr, &free)
+ : values(nullptr, &std::free)
{}
void
std::copy(begin, begin + n_elements, values.get());
}
- std::unique_ptr<Number[], decltype(&free)> values;
+ std::unique_ptr<Number[], decltype(&std::free)> values;
// This is not used but it allows to simplify the code until we start using
// CUDA-aware MPI.
struct MemorySpaceData<Number, CUDA>
{
MemorySpaceData()
- : values(nullptr, &free)
+ : values(nullptr, &std::free)
, values_dev(nullptr, Utilities::CUDA::delete_device_data<Number>)
{}
AssertCuda(cuda_error_code);
}
- std::unique_ptr<Number[], decltype(&free)> values;
- std::unique_ptr<Number[], void (*)(Number *)> values_dev;
+ std::unique_ptr<Number[], decltype(&std::free)> values;
+ std::unique_ptr<Number[], void (*)(Number *)> values_dev;
};
/**
* Pointer to the array of local elements of this vector.
*/
- std::unique_ptr<Number[], decltype(free) *> values;
+ std::unique_ptr<Number[], decltype(std::free) *> values;
/**
* For parallel loops with TBB, this member variable stores the affinity