My Source Depot
Thursday, August 28, 2014
copy constructor & explicit
클레스에 포인터 맴버가 있을경우 copy constructor나 = 오퍼레이터가 될경우
단순 포인터만 카피가 된다
그래서 destructor에서 두번 delete될수도 있다
explicit은
A a = 10; 이런식으로 호출되는것을 막는것
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment