Skip to content

Commit

Permalink
sanitizer complains about stack-use-after-scope cause it's a contexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Jan 23, 2024
1 parent c80b8b0 commit 8fd1512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initializer/data_provider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ T const& dict_get(Dict const& dict, std::string const& path)
}

template<typename T, typename Dict>
T const& dict_get(Dict const& dict, std::string const& path, T const& default_value)
T dict_get(Dict const& dict, std::string const& path, T const default_value)
{
auto leaf = traverse_to_node(dict, path);
if (leaf)
Expand Down

0 comments on commit 8fd1512

Please sign in to comment.