@@ -204,8 +204,8 @@ void dataframe::add_dimension(
204204 std::span<const char *const > dimension_categories,
205205 std::span<const std::uint32_t > dimension_values,
206206 std::string_view name,
207- adding_type adding_strategy ,
208- std::span< const std::pair< const char *, const char *>> info ) &
207+ std::span< const std::pair< const char *, const char *>> info ,
208+ adding_type adding_strategy ) &
209209{
210210 change_state_to (state_type::modifying,
211211 state_modification_reason::needs_series_type);
@@ -276,8 +276,8 @@ void dataframe::add_dimension(
276276
277277void dataframe::add_measure (std::span<const double > measure_values,
278278 std::string_view name,
279- adding_type adding_strategy ,
280- std::span< const std::pair< const char *, const char *>> info ) &
279+ std::span< const std::pair< const char *, const char *>> info ,
280+ adding_type adding_strategy ) &
281281{
282282 change_state_to (state_type::modifying,
283283 state_modification_reason::needs_series_type);
@@ -656,17 +656,18 @@ std::string dataframe::as_string() const &
656656 default : error (error_type::series_not_found, name);
657657 case dimension: {
658658 const auto &[name, dim] = unsafe_get<dimension>(ser);
659- obj (" name" , name)(" type" , " dimension" )(" isContiguous " ,
660- dim.info . at ( " isContiguous " ))(" length " ,
661- dim. values . size ())( " categories " , dim.categories );
659+ obj (" name" , name)(" type" , " dimension" )(" length " ,
660+ dim.values . size ( ))(" categories " , dim. categories )
661+ . mergeObj < false >( dim.info );
662662 break ;
663663 }
664664 case measure: {
665665 const auto &[name, mea] = unsafe_get<measure>(ser);
666666 auto &&[min, max] = mea.get_min_max ();
667- obj (" name" , name)(" type" , " measure" )(" unit" ,
668- mea.info .at (" unit" ))(" length" , mea.values .size ())
669- .nested (" range" )(" min" , min)(" max" , max);
667+ obj (" name" , name)(" type" , " measure" )(" length" ,
668+ mea.values .size ())
669+ .nested (" range" )(" min" , min)(" max" , max)
670+ .mergeObj <false >(mea.info );
670671 break ;
671672 }
672673 }
0 commit comments