From 6d8d043adde8c95589f6e65e1fe228cb1f0d8419 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 5 Jan 2022 21:21:46 +0100 Subject: [PATCH] :recycle: make function static --- include/nlohmann/detail/output/serializer.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index cc63ab1d3..e475ef959 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -664,7 +664,7 @@ class serializer * @param[in] byte byte to represent * @return representation ("00".."FF") */ - inline std::string hex_bytes(std::uint8_t byte) + static std::string hex_bytes(std::uint8_t byte) { std::string result = "FF"; constexpr const char* nibble_to_hex = "0123456789ABCDEF"; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index e573adc13..92308c557 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -16707,7 +16707,7 @@ class serializer * @param[in] byte byte to represent * @return representation ("00".."FF") */ - inline std::string hex_bytes(std::uint8_t byte) + static std::string hex_bytes(std::uint8_t byte) { std::string result = "FF"; constexpr const char* nibble_to_hex = "0123456789ABCDEF";