경고 C26465

const기려면 사용하지 const_cast 마세요. const_cast 이 필요하지 않습니다. 이 변환으로 인해 constness 또는 변동성이 제거되지 않습니다.

참고 항목

C++ 핵심 지침 유형.3

예제

void function(int* const constPtrToInt)
{
  auto p = const_cast<int*>(constPtrToInt); // C26465, const is not being removed
}