Skip to content

Commit c3a3af8

Browse files
authored
Merge pull request #68 from toge/remove-template-id
remove template id from constructor/destructor
2 parents cd3f649 + 4211cd4 commit c3a3af8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

kaitai/exceptions.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class validation_failed_error: public kstruct_error {
115115
template<typename T>
116116
class validation_not_equal_error: public validation_failed_error {
117117
public:
118-
validation_not_equal_error<T>(const T& expected, const T& actual, kstream* io, const std::string src_path):
118+
validation_not_equal_error(const T& expected, const T& actual, kstream* io, const std::string src_path):
119119
validation_failed_error("not equal", io, src_path),
120120
m_expected(expected),
121121
m_actual(actual)
@@ -124,7 +124,7 @@ class validation_not_equal_error: public validation_failed_error {
124124

125125
// "not equal, expected #{expected.inspect}, but got #{actual.inspect}"
126126

127-
virtual ~validation_not_equal_error<T>() KS_NOEXCEPT {};
127+
virtual ~validation_not_equal_error() KS_NOEXCEPT {};
128128

129129
protected:
130130
const T& m_expected;
@@ -138,7 +138,7 @@ class validation_not_equal_error: public validation_failed_error {
138138
template<typename T>
139139
class validation_less_than_error: public validation_failed_error {
140140
public:
141-
validation_less_than_error<T>(const T& min, const T& actual, kstream* io, const std::string src_path):
141+
validation_less_than_error(const T& min, const T& actual, kstream* io, const std::string src_path):
142142
validation_failed_error("not in range", io, src_path),
143143
m_min(min),
144144
m_actual(actual)
@@ -147,7 +147,7 @@ class validation_less_than_error: public validation_failed_error {
147147

148148
// "not in range, min #{min.inspect}, but got #{actual.inspect}"
149149

150-
virtual ~validation_less_than_error<T>() KS_NOEXCEPT {};
150+
virtual ~validation_less_than_error() KS_NOEXCEPT {};
151151

152152
protected:
153153
const T& m_min;
@@ -161,7 +161,7 @@ class validation_less_than_error: public validation_failed_error {
161161
template<typename T>
162162
class validation_greater_than_error: public validation_failed_error {
163163
public:
164-
validation_greater_than_error<T>(const T& max, const T& actual, kstream* io, const std::string src_path):
164+
validation_greater_than_error(const T& max, const T& actual, kstream* io, const std::string src_path):
165165
validation_failed_error("not in range", io, src_path),
166166
m_max(max),
167167
m_actual(actual)
@@ -170,7 +170,7 @@ class validation_greater_than_error: public validation_failed_error {
170170

171171
// "not in range, max #{max.inspect}, but got #{actual.inspect}"
172172

173-
virtual ~validation_greater_than_error<T>() KS_NOEXCEPT {};
173+
virtual ~validation_greater_than_error() KS_NOEXCEPT {};
174174

175175
protected:
176176
const T& m_max;
@@ -184,15 +184,15 @@ class validation_greater_than_error: public validation_failed_error {
184184
template<typename T>
185185
class validation_not_any_of_error: public validation_failed_error {
186186
public:
187-
validation_not_any_of_error<T>(const T& actual, kstream* io, const std::string src_path):
187+
validation_not_any_of_error(const T& actual, kstream* io, const std::string src_path):
188188
validation_failed_error("not any of the list", io, src_path),
189189
m_actual(actual)
190190
{
191191
}
192192

193193
// "not any of the list, got #{actual.inspect}"
194194

195-
virtual ~validation_not_any_of_error<T>() KS_NOEXCEPT {};
195+
virtual ~validation_not_any_of_error() KS_NOEXCEPT {};
196196

197197
protected:
198198
const T& m_actual;
@@ -205,15 +205,15 @@ class validation_not_any_of_error: public validation_failed_error {
205205
template<typename T>
206206
class validation_expr_error: public validation_failed_error {
207207
public:
208-
validation_expr_error<T>(const T& actual, kstream* io, const std::string src_path):
208+
validation_expr_error(const T& actual, kstream* io, const std::string src_path):
209209
validation_failed_error("not matching the expression", io, src_path),
210210
m_actual(actual)
211211
{
212212
}
213213

214214
// "not matching the expression, got #{actual.inspect}"
215215

216-
virtual ~validation_expr_error<T>() KS_NOEXCEPT {};
216+
virtual ~validation_expr_error() KS_NOEXCEPT {};
217217

218218
protected:
219219
const T& m_actual;

0 commit comments

Comments
 (0)