util/HugeAllocator: make constructor explicit

This commit is contained in:
Max Kellermann 2017-09-19 18:41:03 +02:00
parent 5ce93d6fa8
commit 821480d329
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class HugeAllocation {
public:
HugeAllocation() = default;
HugeAllocation(size_t _size)
explicit HugeAllocation(size_t _size)
:data(HugeAllocate(_size)), size(_size) {}
HugeAllocation(HugeAllocation &&src) noexcept