Skip to content

Commit

Permalink
ConfigParser: Fixed bug for Apple Clang
Browse files Browse the repository at this point in the history
Minor bug. Somehow clang didn't catch it.

Co-authored-by: Moritz Sallermann <moritzsallermann@gmail.com>
  • Loading branch information
amritagos and MSallermann committed Mar 19, 2024
1 parent ce3f95f commit 8c8660a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SimulationOptions parse_config_file( std::string_view config_file_path )

auto set_if_specified = [&]( auto & opt, const auto & toml_opt )
{
using T = std::remove_reference<decltype( opt )>::type;
using T = typename std::remove_reference<decltype( opt )>::type;
auto t_opt = toml_opt.template value<T>();
if( t_opt.has_value() )
opt = t_opt.value();
Expand Down

0 comments on commit 8c8660a

Please sign in to comment.