From 2b7f1054e7ec6d850e9a94a62b3f9079c2f35472 Mon Sep 17 00:00:00 2001 From: Shunsuke Kanda Date: Tue, 29 Jun 2021 09:12:13 +0900 Subject: [PATCH] minor --- include/xcdat.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/xcdat.hpp b/include/xcdat.hpp index 040604b..8837dbf 100644 --- a/include/xcdat.hpp +++ b/include/xcdat.hpp @@ -17,7 +17,7 @@ using trie_7_type = trie; using trie_8_type = trie; template -static Trie mmap(const char* address) { +Trie mmap(const char* address) { Trie idx; mmap_visitor visitor(address); visitor.visit(idx); @@ -25,7 +25,7 @@ static Trie mmap(const char* address) { } template -static Trie load(std::string_view filepath) { +Trie load(std::string_view filepath) { Trie idx; load_visitor visitor(filepath); visitor.visit(idx); @@ -33,14 +33,14 @@ static Trie load(std::string_view filepath) { } template -static std::uint64_t save(const Trie& idx, std::string_view filepath) { +std::uint64_t save(const Trie& idx, std::string_view filepath) { save_visitor visitor(filepath); visitor.visit(const_cast(idx)); return visitor.bytes(); } template -static std::uint64_t memory_in_bytes(const Trie& idx) { +std::uint64_t memory_in_bytes(const Trie& idx) { size_visitor visitor; visitor.visit(const_cast(idx)); return visitor.bytes();