eoserial: typos (comment + throw exceptions)
This commit is contained in:
parent
23daeca675
commit
626a86ee26
1 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ Authors:
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @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
|
* possible as GCC and Clang refuse to have std::vector specializations of template methods (while it works with
|
||||||
* functions).
|
* functions).
|
||||||
*
|
*
|
||||||
|
|
@ -129,13 +129,13 @@ namespace eoserial
|
||||||
template<class T>
|
template<class T>
|
||||||
void deserializeSimple( const eoserial::Entity* json, T & value )
|
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<class T>
|
template<class T>
|
||||||
void deserializeObject( const eoserial::Entity* json, T & value )
|
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<>
|
template<>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue