Skip to content

Commit b7d7ac4

Browse files
committed
carrot_core: continue fixiing exception inheritance
1 parent 04e8a21 commit b7d7ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/carrot_core/exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
namespace carrot
4343
{
44-
#define CARROT_DEFINE_SIMPLE_ERROR_TYPE(e, b) class e: b { using b::b; };
44+
#define CARROT_DEFINE_SIMPLE_ERROR_TYPE(e, b) class e: public b { using b::b; };
4545

4646
class carrot_logic_error: public std::logic_error { using std::logic_error::logic_error; };
4747

0 commit comments

Comments
 (0)