Skip to content

Commit be6d095

Browse files
NathanielVolfangojenkins
authored andcommitted
QPR-10445 -- Add float type to EventMessage parsing
1 parent 4a91962 commit be6d095

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OREData/ored/utilities/log.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ string EventMessage::json() const {
270270
value = to_string(boost::any_cast<unsigned int>(p.second));
271271
} else if (p.second.type() == typeid(unsigned short)) {
272272
value = to_string(boost::any_cast<unsigned short>(p.second));
273+
} else if (p.second.type() == typeid(float)) {
274+
value = to_string(boost::any_cast<float>(p.second));
273275
} else if (p.second.type() == typeid(QuantLib::Size)) {
274276
value = to_string(boost::any_cast<QuantLib::Size>(p.second));
275277
} else if (p.second.type() == typeid(QuantLib::Real)) {

0 commit comments

Comments
 (0)