We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a581ac commit 61908c5Copy full SHA for 61908c5
orc-rt/include/orc-rt/RTTI.h
@@ -52,8 +52,12 @@
52
#ifndef ORC_RT_RTTI_H
53
#define ORC_RT_RTTI_H
54
55
+#include <type_traits>
56
+
57
namespace orc_rt {
58
59
+class ErrorInfoBase;
60
61
template <typename ThisT, typename ParentT> class RTTIExtends;
62
63
/// Base class for the extensible RTTI hierarchy.
@@ -107,6 +111,10 @@ class RTTIRoot {
107
111
///
108
112
template <typename ThisT, typename ParentT> class RTTIExtends : public ParentT {
109
113
public:
114
+ static_assert(!std::is_base_of_v<ErrorInfoBase, ParentT>,
115
+ "RTTIExtends should not be used to define orc_rt custom error "
116
+ "types, use ErrorExtends instead");
117
110
118
// Inherit constructors and isA methods from ParentT.
119
using ParentT::isA;
120
using ParentT::ParentT;
0 commit comments