From b5f15a4a3d93468e42812f14868f5ebfbf9e6ec3 Mon Sep 17 00:00:00 2001 From: LPTK Date: Thu, 18 Jul 2013 14:11:18 +0200 Subject: [PATCH] fixed bug where failing to read from the string was silently ignored (causing further problems in the framework -- eoParser) --- eo/src/utils/eoParam.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eo/src/utils/eoParam.h b/eo/src/utils/eoParam.h index 948092c93..1c0937528 100644 --- a/eo/src/utils/eoParam.h +++ b/eo/src/utils/eoParam.h @@ -224,7 +224,9 @@ public : void setValue(const std::string& _value) { std::istringstream is(_value); - is >> repValue; + bool read = (is >> repValue); + if (!read) + throw std::runtime_error("Could not read value passed in eoValueParam::setValue"); } protected: