TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ from_json() [6/19]

template<typename BasicJsonType , typename ConstructibleStringType , enable_if_t< is_constructible_string_type< BasicJsonType, ConstructibleStringType >::value &&!std::is_same< typename BasicJsonType::string_t, ConstructibleStringType >::value, int > = 0>
void nlohmann::detail::from_json ( const BasicJsonType &  j,
ConstructibleStringType &  s 
)

Definition at line 3975 of file json.hpp.

3976{
3977 if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
3978 {
3979 JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()), j));
3980 }
3981
3982 s = *j.template get_ptr<const typename BasicJsonType::string_t *>();
3983}