Add dummy for pulling C-style string
So at least everything can compile and the type-check is done.
This commit is contained in:
parent
272ec99bb0
commit
ca2a6acb2a
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue