diff options
author | Eugene Timokhov <timocov@gmail.com> | 2016-09-07 01:09:08 +0300 |
---|---|---|
committer | Eugene Timokhov <timocov@gmail.com> | 2016-09-07 01:09:08 +0300 |
commit | 0a9418b307f0878cc235331057dff45aeebe44dc (patch) | |
tree | 9e66053365070ded7e711fa4c774f17c6d236a66 /include/utility.h | |
parent | d957b3444bd821e611789f5bdcee624692a81934 (diff) | |
download | crow-0a9418b307f0878cc235331057dff45aeebe44dc.tar.gz crow-0a9418b307f0878cc235331057dff45aeebe44dc.zip |
Fixed missing static keyword for non-template functions
Diffstat (limited to 'include/utility.h')
-rw-r--r-- | include/utility.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <typename F, typename Set> using arg = typename std::tuple_element<i, std::tuple<Args...>>::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 <typename F, typename Set> 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-_"); } |