Skip to content

Commit

Permalink
Formatting: Minor formatting changes
Browse files Browse the repository at this point in the history
Indentation of a comment in network and std::is_same_v<T> instead of
std::is_same<T>::value
  • Loading branch information
MSallermann committed Mar 15, 2024
1 parent 5ba966e commit 2b91f28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Network
}

/*
Gives a view into the neighbour indices going out/coming in at agent_idx
Gives a view into the neighbour indices going out/coming in at agent_idx
*/
[[nodiscard]] std::span<const size_t> get_neighbours( std::size_t agent_idx ) const
{
Expand Down
4 changes: 2 additions & 2 deletions include/simulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Simulation : public SimulationInterface
}
}

if constexpr( std::is_same<AgentType, DeGrootModel::AgentT>::value )
if constexpr( std::is_same_v<AgentType, DeGrootModel::AgentT> )
{
auto degroot_settings = std::get<Config::DeGrootSettings>( options.model_settings );

Expand All @@ -98,7 +98,7 @@ class Simulation : public SimulationInterface
network.agents = AgentGeneration::generate_from_file<DeGrootModel::AgentT>( cli_agent_file.value() );
}
}
else if constexpr( std::is_same<AgentType, ActivityAgentModel::AgentT>::value )
else if constexpr( std::is_same_v<AgentType, ActivityAgentModel::AgentT> )
{
auto activitydriven_settings = std::get<Config::ActivityDrivenSettings>( options.model_settings );

Expand Down

0 comments on commit 2b91f28

Please sign in to comment.