How to resolve this MISRA warning: C++

c++, misra

Solution

Do what the warning says: take the address of the function:

os << &std::hex;

Problem

Here is the code as below: ``` std::stringstream os; os << std::hex; // MISRA warning on this line os << std::setw(2); os << std::setfill('0'); ``` Warning: "Required Rule 8-4-4, function identifier used without '&' or parenthisized parameter list" I am not able to resolve this, please suggest a solution.

Original source