I have an object of type std::exception_ptr and I want to call it what() , but there seems to be no way to do this (as explained in this answer: How to make what () call on std :: exception_ptr ).
After searching the Internet, it seems that I can do nothing with it except re-throwing it and looking for it in std::exception& to do this.
This is a little strange for me, but I want to check: what can others do with std::exception_ptr and then re-throw it to get the wait detail?
Are there any changes in C ++ 14 or other versions of C ++
source share