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

less than 1 minute read

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

1. exception object are always copied\

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

Categories:

Updated: