Skip to content

Deprecation of codecvt warning in traits.hpp #869

@waytoashutosh

Description

@waytoashutosh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions