More inline definitions to for header files to avoid double definition

problems.
This commit is contained in:
Samer Afach 2018-05-20 02:57:13 +02:00
parent 22856e9da2
commit a9562500a0
5 changed files with 37 additions and 37 deletions

View file

@ -219,7 +219,7 @@ enum class algorithm
* Convert the algorithm enum class type to
* its stringified form.
*/
jwt::string_view alg_to_str(enum algorithm alg) noexcept
inline jwt::string_view alg_to_str(enum algorithm alg) noexcept
{
switch (alg) {
case algorithm::HS256: return "HS256";
@ -243,7 +243,7 @@ jwt::string_view alg_to_str(enum algorithm alg) noexcept
* Convert stringified algorithm to enum class.
* The string comparison is case insesitive.
*/
enum algorithm str_to_alg(const jwt::string_view alg) noexcept
inline enum algorithm str_to_alg(const jwt::string_view alg) noexcept
{
if (!alg.length()) return algorithm::NONE;