Skip to content

Commit 3972c29

Browse files
committed
Update cpp test files
1 parent 181996f commit 3972c29

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

schema_salad/tests/cpp_tests/01_single_record.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class heap_object {
200200
*data = std::forward<T2>(oth);
201201
}
202202

203-
~heap_object() = default;
203+
~heap_object();
204204

205205
auto operator=(heap_object const& oth) -> heap_object& {
206206
*data = *oth;
@@ -246,6 +246,9 @@ struct MyRecord {
246246
};
247247
}
248248

249+
template <typename T>
250+
heap_object<T>::~heap_object() = default;
251+
249252
inline auto https___example_com_::MyRecord::toYaml() const -> YAML::Node {
250253
using ::toYaml;
251254
auto n = YAML::Node{};

schema_salad/tests/cpp_tests/02_two_records.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class heap_object {
200200
*data = std::forward<T2>(oth);
201201
}
202202

203-
~heap_object() = default;
203+
~heap_object();
204204

205205
auto operator=(heap_object const& oth) -> heap_object& {
206206
*data = *oth;
@@ -256,6 +256,9 @@ struct MyRecordTwo {
256256
};
257257
}
258258

259+
template <typename T>
260+
heap_object<T>::~heap_object() = default;
261+
259262
inline auto https___example_com_::MyRecordOne::toYaml() const -> YAML::Node {
260263
using ::toYaml;
261264
auto n = YAML::Node{};

schema_salad/tests/cpp_tests/03_simple_inheritance.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class heap_object {
200200
*data = std::forward<T2>(oth);
201201
}
202202

203-
~heap_object() = default;
203+
~heap_object();
204204

205205
auto operator=(heap_object const& oth) -> heap_object& {
206206
*data = *oth;
@@ -257,6 +257,9 @@ struct MyRecordTwo
257257
};
258258
}
259259

260+
template <typename T>
261+
heap_object<T>::~heap_object() = default;
262+
260263
inline auto https___example_com_::MyRecordOne::toYaml() const -> YAML::Node {
261264
using ::toYaml;
262265
auto n = YAML::Node{};

schema_salad/tests/cpp_tests/04_abstract_inheritance.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class heap_object {
200200
*data = std::forward<T2>(oth);
201201
}
202202

203-
~heap_object() = default;
203+
~heap_object();
204204

205205
auto operator=(heap_object const& oth) -> heap_object& {
206206
*data = *oth;
@@ -257,6 +257,9 @@ struct MyRecordTwo
257257
};
258258
}
259259

260+
template <typename T>
261+
heap_object<T>::~heap_object() = default;
262+
260263
inline https___example_com_::MyRecordOne::~MyRecordOne() = default;
261264
inline auto https___example_com_::MyRecordOne::toYaml() const -> YAML::Node {
262265
using ::toYaml;

schema_salad/tests/cpp_tests/05_specialization.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class heap_object {
200200
*data = std::forward<T2>(oth);
201201
}
202202

203-
~heap_object() = default;
203+
~heap_object();
204204

205205
auto operator=(heap_object const& oth) -> heap_object& {
206206
*data = *oth;
@@ -275,6 +275,9 @@ struct MyRecordTwo {
275275
};
276276
}
277277

278+
template <typename T>
279+
heap_object<T>::~heap_object() = default;
280+
278281
inline auto https___example_com_::FieldRecordA::toYaml() const -> YAML::Node {
279282
using ::toYaml;
280283
auto n = YAML::Node{};

0 commit comments

Comments
 (0)