Skip to main content

IAR Embedded Workbench for Arm 9.70.x

MISRAC++2023-4.1.2_g (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.default.allocator]

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 <memory>

void example() {
  std::allocator<int>::pointer int_p = nullptr;
}

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

#include <memory>

void example() {
  std::allocator<int>::value_type* int_p = nullptr;
}