Commit 821480d3 authored by Max Kellermann's avatar Max Kellermann

util/HugeAllocator: make constructor explicit

parent 5ce93d6f
...@@ -121,7 +121,7 @@ class HugeAllocation { ...@@ -121,7 +121,7 @@ class HugeAllocation {
public: public:
HugeAllocation() = default; HugeAllocation() = default;
HugeAllocation(size_t _size) explicit HugeAllocation(size_t _size)
:data(HugeAllocate(_size)), size(_size) {} :data(HugeAllocate(_size)), size(_size) {}
HugeAllocation(HugeAllocation &&src) noexcept HugeAllocation(HugeAllocation &&src) noexcept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment