@@ -54,25 +54,25 @@ void JSONRunPlanWriter::writeRunPlan(std::unique_ptr<T> &writer, const RunPlan &
54
54
// Loop through elements, to construct array
55
55
for (unsigned int el = 0 ; el < p_meta.data .elements ; ++el) {
56
56
if (p_meta.data .type == std::type_index (typeid (float ))) {
57
- writer->Double (*(reinterpret_cast <const float *>(p_meta. data .ptr ) + el));
57
+ writer->Double (*(reinterpret_cast <const float *>(p .ptr ) + el));
58
58
} else if (p_meta.data .type == std::type_index (typeid (double ))) {
59
- writer->Double (*(reinterpret_cast <const double *>(p_meta. data .ptr ) + el));
59
+ writer->Double (*(reinterpret_cast <const double *>(p .ptr ) + el));
60
60
} else if (p_meta.data .type == std::type_index (typeid (int64_t ))) {
61
- writer->Int64 (*(reinterpret_cast <const int64_t *>(p_meta. data .ptr ) + el));
61
+ writer->Int64 (*(reinterpret_cast <const int64_t *>(p .ptr ) + el));
62
62
} else if (p_meta.data .type == std::type_index (typeid (uint64_t ))) {
63
- writer->Uint64 (*(reinterpret_cast <const uint64_t *>(p_meta. data .ptr ) + el));
63
+ writer->Uint64 (*(reinterpret_cast <const uint64_t *>(p .ptr ) + el));
64
64
} else if (p_meta.data .type == std::type_index (typeid (int32_t ))) {
65
- writer->Int (*(reinterpret_cast <const int32_t *>(p_meta. data .ptr ) + el));
65
+ writer->Int (*(reinterpret_cast <const int32_t *>(p .ptr ) + el));
66
66
} else if (p_meta.data .type == std::type_index (typeid (uint32_t ))) {
67
- writer->Uint (*(reinterpret_cast <const uint32_t *>(p_meta. data .ptr ) + el));
67
+ writer->Uint (*(reinterpret_cast <const uint32_t *>(p .ptr ) + el));
68
68
} else if (p_meta.data .type == std::type_index (typeid (int16_t ))) {
69
- writer->Int (*(reinterpret_cast <const int16_t *>(p_meta. data .ptr ) + el));
69
+ writer->Int (*(reinterpret_cast <const int16_t *>(p .ptr ) + el));
70
70
} else if (p_meta.data .type == std::type_index (typeid (uint16_t ))) {
71
- writer->Uint (*(reinterpret_cast <const uint16_t *>(p_meta. data .ptr ) + el));
71
+ writer->Uint (*(reinterpret_cast <const uint16_t *>(p .ptr ) + el));
72
72
} else if (p_meta.data .type == std::type_index (typeid (int8_t ))) {
73
- writer->Int (static_cast <int32_t >(*(reinterpret_cast <const int8_t *>(p_meta. data .ptr ) + el))); // Char outputs weird if being used as an integer
73
+ writer->Int (static_cast <int32_t >(*(reinterpret_cast <const int8_t *>(p .ptr ) + el))); // Char outputs weird if being used as an integer
74
74
} else if (p_meta.data .type == std::type_index (typeid (uint8_t ))) {
75
- writer->Uint (static_cast <uint32_t >(*(reinterpret_cast <const uint8_t *>(p_meta. data .ptr ) + el))); // Char outputs weird if being used as an integer
75
+ writer->Uint (static_cast <uint32_t >(*(reinterpret_cast <const uint8_t *>(p .ptr ) + el))); // Char outputs weird if being used as an integer
76
76
} else {
77
77
THROW exception::RapidJSONError (" RunPlan contains environment property '%s' of unsupported type '%s', "
78
78
" in JSONRunPlanWriter::writeRunPlan()\n " , name.c_str (), p_meta.data .type .name ());
0 commit comments