인프런 커뮤니티 질문&답변
static_pointer_cast와 static_cast의 차이가 무엇인가요?
작성
·
1.3K
답변 1
2
Rookiss
지식공유자
일반 포인터가 아닌 스마트 포인터라서 그렇습니다.
shared_ptr 대상으로 static_cast로 하고 싶을 때 static_pointer_cast를 하시면 됩니다.
작성
·
1.3K
답변 1
2
일반 포인터가 아닌 스마트 포인터라서 그렇습니다.
shared_ptr 대상으로 static_cast로 하고 싶을 때 static_pointer_cast를 하시면 됩니다.