Add exception_ptr for C++03 source code