Skip to content

Deprecation of codecvt warning in traits.hpp #869

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

Open
waytoashutosh opened this issue May 14, 2025 · 1 comment · May be fixed by #871
Open

Deprecation of codecvt warning in traits.hpp #869

waytoashutosh opened this issue May 14, 2025 · 1 comment · May be fixed by #871

Comments

@waytoashutosh
Copy link

When compiling ROS 2 with a C++17 or newer toolchain, the line 131 in rosidl_runtime_cpp/include/rosidl_runtime_cpp/traits.hpp

std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;

emits a deprecation warning for std::codecvt_utf8_utf16 and wstring_convert

How do I resolve this issue, I did some research and there are no replacements as of now.

@fujitatomoya
Copy link
Contributor

@waytoashutosh can you pick #871 and try to see if this works for you?

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

Successfully merging a pull request may close this issue.

2 participants