Skip to main content

IAR Embedded Workbench for RISC-V 3.40

MISRAC++2023-4.1.2_n (C++ only)

In this section:
Synopsis

(Advisory) Deprecated features should not be used

Enabled by default

No

Severity/Certainty

Low/Low

lowlow.png
Full description

Deprecated feature found [depr.conversions]

Coding standards

This check does not correspond to any coding standard rules.

Code examples

The following code example fails the check and will give a warning:

#include <codecvt>
#include <locale>

void example()
{
  std::wbuffer_convert<std::codecvt_utf8<wchar_t>> myconv;
}

The following code example passes the check and will not give a warning about this issue:

void example() {
  // The templates std::wstring_convert and 
  // std::wbuffer_convert has no replacement.
}