apply clang-tidy modernize-use-override
[folly.git] / folly / experimental / hazptr / memory_resource.h
index 33994dd54413e812063a7d4154ee2668e582b124..952c8397405ad2de0ebda035e2ce5467596de9c8 100644 (file)
@@ -69,7 +69,7 @@ inline memory_resource* new_delete_resource() {
    public:
     void* allocate(
         const size_t bytes,
-        const size_t alignment = alignof(std::max_align_t)) {
+        const size_t alignment = alignof(std::max_align_t)) override {
       (void)alignment;
       void* p = static_cast<void*>(new char[bytes]);
       DEBUG_PRINT(this << " " << p << " " << bytes);
@@ -78,7 +78,7 @@ inline memory_resource* new_delete_resource() {
     void deallocate(
         void* p,
         const size_t bytes,
-        const size_t alignment = alignof(std::max_align_t)) {
+        const size_t alignment = alignof(std::max_align_t)) override {
       (void)alignment;
       (void)bytes;
       DEBUG_PRINT(p << " " << bytes);