Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

throwing Copyable versus throwing MoveOnly

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,4 sec, absolute running time: 0,32 sec, absolute service time: 1,74 sec 
fork mode |  history  | discussion
Throwing an exception of type struct Copyable...
 creating
Found the catch block.
Now calling current_exception...
 copying
Now calling rethrow_exception...
 copying
Found the next catch block.
 destroying
 destroying
Now setting ex to nullptr...
 destroying
Now exiting main()