03 까지는 복사 시맨틱스에 의존했지만
값 반환에 문제가 있었음
이때문에 무브 시맨틱스의 존재를 넣은 11부터를 '모던'이라고 한거
자꾸 자유도 추구한다고 지좆대로 짜니까
최소한의 안전선이라고 넣은게 이동 시맨틱임
deep copy와 shallow move의 차이고 이게 바로 비야네가 강조한거임
아~~~존나 갑갑해 진짜
03 까지는 복사 시맨틱스에 의존했지만
값 반환에 문제가 있었음
이때문에 무브 시맨틱스의 존재를 넣은 11부터를 '모던'이라고 한거
자꾸 자유도 추구한다고 지좆대로 짜니까
최소한의 안전선이라고 넣은게 이동 시맨틱임
deep copy와 shallow move의 차이고 이게 바로 비야네가 강조한거임
아~~~존나 갑갑해 진짜
"검증 레이어"라는거 너의 독창적인 아니고 '공식 문서'에 나오는거지? 좀 보여줘
move 시맨틱스 문서 그대로 찾아가서 줌 ㄱㄷ
https://en.cppreference.com/w/cpp/utility/move.html
이
문서 자체가 검증 레이어 연학을 하는 것을 설명함
그냥 형변환인데?
@ㅇㅇ F.49: Don’t return const T Reason It is not recommended to return a const value. Such older advice is now obsolete; it does not add value, and it interferes with move semantics.
@ㅇㅇ P.9: Don’t waste time or space ~~ Yes, this is a caricature, but we have seen every individual mistake in production code, and worse. Note that the layout of X guarantees that at least 6 bytes (and most likely more) are wasted. The spurious definition of copy operations disables move semantics so that the return operation is slow (please note that the Return Value Optimization, RVO, is not guarant
@ㅇㅇ 내가 비야네 논문 직접 링크해준다 그냥
https://gall.dcinside.com/board/view/?id=programming&no=2867368&page=1