oatpp / oatpp

🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
https://oatpp.io/
Apache License 2.0
7.62k stars 1.28k forks source link

Casting from "oatpp::data::mapping::type::String" to const char* or something like this #37

Closed AIshutin closed 5 years ago

AIshutin commented 5 years ago

Hello!

Thanks for awesome framework. I'm trying to get started. By the way, without a documentation it's quite difficult. So, my problem is converting oatpp::data::mapping::type::String to something like char* for interaction with other frameworks. How can I cast oatpp::data::mapping::type::String

lganzzzo commented 5 years ago

Hello,

oatpp::String a = "text";
const char* b = a->c_str();

Regards

AIshutin commented 5 years ago

Thanks a lot!

lganzzzo commented 5 years ago

You are welcome!