C++ exception – difference passing arguments between exception and function

오랜만에 다시 C++책을 읽으면서 아래의 C++ exception에 대한 자세한 사항을 늘어 봅니다.

1. exception object are always copied
– 복사할때 항상 static type정보를 이용해서 복사한다는 사실.
2. exception are fewer type conversion than functions.
– implicit컨버전에 제약이 많음.
3. catch causes are examined in the order of source code
– 만약 exception의 base클래스가 먼저 있으면 다른 child class는 실행할 기회를 갖지를 못함.

Advertisements
This entry was posted in C++. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s