From 044953cc48ab6b1166c6ff1ba47e730ce878b347 Mon Sep 17 00:00:00 2001 From: thorstenhater <24411438+thorstenhater@users.noreply.github.com> Date: Wed, 14 Apr 2021 12:12:40 +0200 Subject: [PATCH] Make proper aggregates for C++20 (#1479) --- arbor/include/arbor/cable_cell_param.hpp | 27 +++++++++--------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/arbor/include/arbor/cable_cell_param.hpp b/arbor/include/arbor/cable_cell_param.hpp index 0e80bb85..3c53621b 100644 --- a/arbor/include/arbor/cable_cell_param.hpp +++ b/arbor/include/arbor/cable_cell_param.hpp @@ -94,41 +94,34 @@ struct gap_junction_site {}; // cell-wide default: struct init_membrane_potential { - init_membrane_potential() = delete; - double value; // [mV] + double value = NAN; // [mV] }; struct temperature_K { - temperature_K() = delete; - double value; // [K] + double value = NAN; // [K] }; struct axial_resistivity { - axial_resistivity() = delete; - double value; // [Ω·cm] + double value = NAN; // [Ω·cm] }; struct membrane_capacitance { - membrane_capacitance() = delete; - double value; // [F/m²] + double value = NAN; // [F/m²] }; struct init_int_concentration { - init_int_concentration() = delete; - std::string ion; - double value; // [mM] + std::string ion = ""; + double value = NAN; // [mM] }; struct init_ext_concentration { - init_ext_concentration() = delete; - std::string ion; - double value; // [mM] + std::string ion = ""; + double value = NAN; // [mM] }; struct init_reversal_potential { - init_reversal_potential() = delete; - std::string ion; - double value; // [mV] + std::string ion = ""; + double value = NAN; // [mV] }; // Mechanism description, viz. mechanism name and -- GitLab