From ba23c68f0bf0a594a4af7080900ea03bda133fa4 Mon Sep 17 00:00:00 2001 From: Vincent Do Date: Wed, 18 May 2016 16:00:10 -0400 Subject: SERVER-23703 Make NumberDecimal accepts only valid strings --- src/mongo/platform/decimal128.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/platform/decimal128.h') diff --git a/src/mongo/platform/decimal128.h b/src/mongo/platform/decimal128.h index f347ec42f70..6fa6d6d3e2c 100644 --- a/src/mongo/platform/decimal128.h +++ b/src/mongo/platform/decimal128.h @@ -177,6 +177,10 @@ public: */ explicit Decimal128(std::string stringValue, RoundingMode roundMode = kRoundTiesToEven); + Decimal128(std::string stringValue, + std::uint32_t* signalingFlag, + RoundingMode roundMode = kRoundTiesToEven); + /** * This function gets the inner Value struct storing a Decimal128 value. */ -- cgit v1.2.1