aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2016-09-10 01:25:49 +0900
committeripknHama <ipknhama@gmail.com>2016-09-10 01:25:49 +0900
commit031f850b94d132885e4b293864897f742cc9f28a (patch)
tree5d36eec46aea6ce342b1e8e487e3c25819f330b7 /include
parenta1a587784ebb9852587dee618ea19b1572cbd6c7 (diff)
downloadcrow-031f850b94d132885e4b293864897f742cc9f28a.tar.gz
crow-031f850b94d132885e4b293864897f742cc9f28a.zip
Add inline to avoid unused function warning
Diffstat (limited to 'include')
-rw-r--r--include/utility.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utility.h b/include/utility.h
index e17008e..26ca151 100644
--- a/include/utility.h
+++ b/include/utility.h
@@ -502,7 +502,7 @@ template <typename F, typename Set>
using arg = typename std::tuple_element<i, std::tuple<Args...>>::type;
};
- static std::string base64encode(const char* data, size_t size, const char* key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
+ inline static std::string base64encode(const char* data, size_t size, const char* key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
{
std::string ret;
ret.resize((size+2) / 3 * 4);
@@ -538,7 +538,7 @@ template <typename F, typename Set>
return ret;
}
- static std::string base64encode_urlsafe(const char* data, size_t size)
+ inline static std::string base64encode_urlsafe(const char* data, size_t size)
{
return base64encode(data, size, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
}