Skip to content

Commit e4fa873

Browse files
committed
Allow rust::Error to be caught as std::exception&
1 parent 9f6c075 commit e4fa873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cxx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ using TryFn = Fn<Signature, true>;
242242

243243
#ifndef CXXBRIDGE04_RUST_ERROR
244244
#define CXXBRIDGE04_RUST_ERROR
245-
class Error final : std::exception {
245+
class Error final : public std::exception {
246246
public:
247247
Error(const Error &);
248248
Error(Error &&) noexcept;

0 commit comments

Comments
 (0)