oatpp icon indicating copy to clipboard operation
oatpp copied to clipboard

auto objectMapper = oatpp::json::ObjectMapper::createShared();

Open smalie2222 opened this issue 9 months ago • 2 comments

您好,请问最新的版本(1.4.0)中在:json::ObjectMapper中并没有createShared();了,那么现在这个代码应该怎么写呢?

smalie2222 avatar May 10 '24 02:05 smalie2222

Hello @smalie2222 ,

Use the standard way:

auto mapper = std::make_shared<oatpp::json::ObjectMapper>();

Note: 1.4.0 isn't released yet. Use 1.3.0-latest release tag for stable version.

lganzzzo avatar May 10 '24 02:05 lganzzzo

好的,谢谢

smalie2222 avatar May 10 '24 02:05 smalie2222