Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smalie2222 opened this issue May 10, 2024 · 2 comments
Open

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

smalie2222 opened this issue May 10, 2024 · 2 comments
Labels
Question Further information is requested

Comments

@smalie2222
Copy link

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

@lganzzzo lganzzzo added the Question Further information is requested label May 10, 2024
@lganzzzo
Copy link
Member

lganzzzo commented May 10, 2024

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.

@smalie2222
Copy link
Author

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants