From 2b91f28f92c8036fb80dfdc1c30403ee8727b285 Mon Sep 17 00:00:00 2001 From: Moritz Sallermann Date: Fri, 15 Mar 2024 20:36:12 +0000 Subject: [PATCH] Formatting: Minor formatting changes Indentation of a comment in network and std::is_same_v instead of std::is_same::value --- include/network.hpp | 2 +- include/simulation.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/network.hpp b/include/network.hpp index ed9497c..997ad70 100644 --- a/include/network.hpp +++ b/include/network.hpp @@ -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 get_neighbours( std::size_t agent_idx ) const { diff --git a/include/simulation.hpp b/include/simulation.hpp index 6e111ca..ecce938 100644 --- a/include/simulation.hpp +++ b/include/simulation.hpp @@ -80,7 +80,7 @@ class Simulation : public SimulationInterface } } - if constexpr( std::is_same::value ) + if constexpr( std::is_same_v ) { auto degroot_settings = std::get( options.model_settings ); @@ -98,7 +98,7 @@ class Simulation : public SimulationInterface network.agents = AgentGeneration::generate_from_file( cli_agent_file.value() ); } } - else if constexpr( std::is_same::value ) + else if constexpr( std::is_same_v ) { auto activitydriven_settings = std::get( options.model_settings );