Skip to content

Commit

Permalink
Update safe_env.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-burda authored Nov 30, 2024
1 parent a4e6b54 commit d92779f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/safe_env/safe_env.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace detail
inline std::shared_mutex mtx;

template<typename F>
std::string read(const std::string& name, F getter)
std::string read(const std::string& name, const F getter)
{
if (name.empty()) [[unlikely]]
{
Expand All @@ -64,7 +64,7 @@ std::string read(const std::string& name, F getter)
}

template<typename F, typename... Args>
void write(const std::string& name, F setter, Args&&... args)
void write(const std::string& name, const F setter, Args&&... args)
{
if (name.empty()) [[unlikely]]
{
Expand Down

0 comments on commit d92779f

Please sign in to comment.