0

I want to assign a string value from rappidjson to my variable class.

void MyClass::setName(Ch* jsonString) 
{
    _name = (std::string)jsonString; 
}
Anthon
  • 69,918
  • 32
  • 186
  • 246
Kakashi
  • 534
  • 11
  • 16

1 Answers1

0

I solved the problem.

void MyClass::setName(Ch* jsonString)
{
   _name = jsonString;
}
Kakashi
  • 534
  • 11
  • 16