Add dummy for pulling C-style string

So at least everything can compile and the type-check
is done.
This commit is contained in:
Martchus 2017-12-24 02:13:16 +01:00
parent 272ec99bb0
commit ca2a6acb2a
1 changed files with 15 additions and 0 deletions

View File

@ -474,6 +474,21 @@ inline void pull(
reflectable = value.GetString();
}
/*!
* \brief Checks whether the specified value contains a string.
* \remarks Does not actually store the value since the ownership would not be clear (see README.md).
*/
template <typename Type, Traits::EnableIfAny<std::is_same<Type, const char *>, std::is_same<Type, const char *const &>>...>
inline void pull(Type &, const RAPIDJSON_NAMESPACE::GenericValue<RAPIDJSON_NAMESPACE::UTF8<char>> &value, JsonDeserializationErrors *errors)
{
if (!value.IsString()) {
if (errors) {
errors->reportTypeMismatch<std::string>(value.GetType());
}
return;
}
}
/*!
* \brief Pulls the specified \a reflectable which is an iteratable without reserve() method from the specified value which is checked to contain an array.
*/