Skip to content

Commit

Permalink
set destructor to public, and remove () when initializing object with…
Browse files Browse the repository at this point in the history
… default values
  • Loading branch information
dingp committed Mar 17, 2023
1 parent 8bd2fac commit 0bdcfee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/apps/exception_example.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ where <num> is a number: 0 - 6.

class XX
{
public:
~XX() { TLOG_DEBUG(1) << "dtor object after raise/throw"; }
};

void foo( int except_int )
{
XX xx();
XX xx;
switch( except_int ) {
case 0: {
TLOG_DEBUG(1) << "raising ers::PermissionDenied " << "somefilename";
Expand Down

0 comments on commit 0bdcfee

Please sign in to comment.