From 0a9418b307f0878cc235331057dff45aeebe44dc Mon Sep 17 00:00:00 2001 From: Eugene Timokhov Date: Wed, 7 Sep 2016 01:09:08 +0300 Subject: Fixed missing static keyword for non-template functions --- include/utility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/utility.h') diff --git a/include/utility.h b/include/utility.h index b714d55..e82e6bf 100644 --- a/include/utility.h +++ b/include/utility.h @@ -500,7 +500,7 @@ template using arg = typename std::tuple_element>::type; }; - std::string base64encode(const char* data, size_t size, const char* key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/") + static std::string base64encode(const char* data, size_t size, const char* key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/") { std::string ret; ret.resize((size+2) / 3 * 4); @@ -536,7 +536,7 @@ template return ret; } - std::string base64encode_urlsafe(const char* data, size_t size) + static std::string base64encode_urlsafe(const char* data, size_t size) { return base64encode(data, size, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"); } -- cgit v1.2.3-54-g00ecf