배움엔 끝이없다/C++(2)
-
Rule of 0/3/5 의 의도를 이해하자
Rule of 3, 5, 0라는 표현을 많이 들어봤지만, 제대로 이해하지 않고 실제로 활용하지도 않고 있었다. cpp reference에도 관련 항목이 있다. The rule of three/five/zero - cppreference.com [edit] Rule of three If a class requires a user-defined destructor, a user-defined copy constructor, or a user-defined copy assignment operator, it almost certainly requires all three. Because C++ copies and copy-assigns objects of user-defined types in va en.cp..
2023.11.20 -
floating point precision을 완전히 이해하고 있나?
오늘은 모종의 이유로 게임 엔진 스터디에서 floating point precision에 대해 공부했는데, 같이했던 분이 밤에 대충 아래 내용의 카톡을 보내셨습니다. if (1.1 + 0.1 == 1.2) std::cout
2023.11.16