Replies: 1 comment
-
Well, the first reason I'm encountering is that simply moving the use of It seems like |
Beta Was this translation helpful? Give feedback.
-
Well, the first reason I'm encountering is that simply moving the use of It seems like |
Beta Was this translation helpful? Give feedback.
-
in
template<class ValueType> template<class T, class C1> inline std::enable_if<sparta::is_vector<C1>::value>::type sparta::Parameter<ValueType>::setValueFromString_(const std::__cxx11::string &str, bool poke = false)
at
map/sparta/sparta/simulation/Parameter.hpp
Lines 2317 to 2319 in ee08219
Why throw?
Couldn't we just move the code from:
map/sparta/sparta/app/ConfigApplicators.hpp
Lines 331 to 355 in ee08219
into
Parameter
instead of throwing an exception and this would enable programmatically taking a string with a nested vector representation and setting a parameter with it just like we do via cmdline-p
?In other words, should the logic for YAML parsing the string and applying it to N-dimensional Vector move into
Parameter
and remove theif if(false == p->isVector())
fromParameterApplicator
.Beta Was this translation helpful? Give feedback.
All reactions