From dc0f995ff4f0de4a91163c64d45c056ec84f53ff Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Fri, 22 Mar 2013 00:37:25 +0100 Subject: [PATCH] eoserial: typos (comment + throw exceptions) --- eo/src/serial/Serialize.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo/src/serial/Serialize.h b/eo/src/serial/Serialize.h index 1a1e99ca1..f833f427a 100644 --- a/eo/src/serial/Serialize.h +++ b/eo/src/serial/Serialize.h @@ -78,7 +78,7 @@ Authors: * } * @endcode * - * @todo Encapsulate non private functions. As of today (2013-03-19), it is not + * @todo Encapsulate private functions. As of today (2013-03-19), it is not * possible as GCC and Clang refuse to have std::vector specializations of template methods (while it works with * functions). * @@ -129,13 +129,13 @@ namespace eoserial template void deserializeSimple( const eoserial::Entity* json, T & value ) { - std::runtime_error("eoSerial: deserializeSimple called with an unknown basic type."); + throw std::runtime_error("eoSerial: deserializeSimple called with an unknown basic type."); } template void deserializeObject( const eoserial::Entity* json, T & value ) { - std::runtime_error("eoSerial:: deserializeObject called with a non eoserial::Persistent object."); + throw std::runtime_error("eoSerial:: deserializeObject called with a non eoserial::Persistent object."); } template<>