diff --git a/schema_salad/tests/cpp_tests/01_single_record.h b/schema_salad/tests/cpp_tests/01_single_record.h index f053df5f..ce47441b 100644 --- a/schema_salad/tests/cpp_tests/01_single_record.h +++ b/schema_salad/tests/cpp_tests/01_single_record.h @@ -381,8 +381,8 @@ struct MyRecord { }; } -template -example_com::heap_object::~heap_object() = default; +namespace example_com { +template heap_object::~heap_object() = default; inline auto example_com::MyRecord::toYaml([[maybe_unused]] ::example_com::store_config const& config) const -> YAML::Node { using ::example_com::toYaml; @@ -525,7 +525,7 @@ auto load_document_from_string(std::string document) -> DocumentRootType { return load_document_from_yaml(YAML::Load(document)); } auto load_document(std::filesystem::path path) -> DocumentRootType { - return load_document_from_yaml(YAML::LoadFile(path)); + return load_document_from_yaml(YAML::LoadFile(path.string())); } void store_document(DocumentRootType const& root, std::ostream& ostream, store_config config={}) { auto y = toYaml(root, config); diff --git a/schema_salad/tests/cpp_tests/02_two_records.h b/schema_salad/tests/cpp_tests/02_two_records.h index fd9df17b..2d13033a 100644 --- a/schema_salad/tests/cpp_tests/02_two_records.h +++ b/schema_salad/tests/cpp_tests/02_two_records.h @@ -391,8 +391,8 @@ struct MyRecordTwo { }; } -template -example_com::heap_object::~heap_object() = default; +namespace example_com { +template heap_object::~heap_object() = default; inline auto example_com::MyRecordOne::toYaml([[maybe_unused]] ::example_com::store_config const& config) const -> YAML::Node { using ::example_com::toYaml; @@ -572,7 +572,7 @@ auto load_document_from_string(std::string document) -> DocumentRootType { return load_document_from_yaml(YAML::Load(document)); } auto load_document(std::filesystem::path path) -> DocumentRootType { - return load_document_from_yaml(YAML::LoadFile(path)); + return load_document_from_yaml(YAML::LoadFile(path.string())); } void store_document(DocumentRootType const& root, std::ostream& ostream, store_config config={}) { auto y = toYaml(root, config); diff --git a/schema_salad/tests/cpp_tests/03_simple_inheritance.h b/schema_salad/tests/cpp_tests/03_simple_inheritance.h index f014fba5..a5145be4 100644 --- a/schema_salad/tests/cpp_tests/03_simple_inheritance.h +++ b/schema_salad/tests/cpp_tests/03_simple_inheritance.h @@ -392,8 +392,8 @@ struct MyRecordTwo }; } -template -example_com::heap_object::~heap_object() = default; +namespace example_com { +template heap_object::~heap_object() = default; inline auto example_com::MyRecordOne::toYaml([[maybe_unused]] ::example_com::store_config const& config) const -> YAML::Node { using ::example_com::toYaml; @@ -575,7 +575,7 @@ auto load_document_from_string(std::string document) -> DocumentRootType { return load_document_from_yaml(YAML::Load(document)); } auto load_document(std::filesystem::path path) -> DocumentRootType { - return load_document_from_yaml(YAML::LoadFile(path)); + return load_document_from_yaml(YAML::LoadFile(path.string())); } void store_document(DocumentRootType const& root, std::ostream& ostream, store_config config={}) { auto y = toYaml(root, config); diff --git a/schema_salad/tests/cpp_tests/04_abstract_inheritance.h b/schema_salad/tests/cpp_tests/04_abstract_inheritance.h index fa56263d..7a6486a9 100644 --- a/schema_salad/tests/cpp_tests/04_abstract_inheritance.h +++ b/schema_salad/tests/cpp_tests/04_abstract_inheritance.h @@ -392,8 +392,8 @@ struct MyRecordTwo }; } -template -example_com::heap_object::~heap_object() = default; +namespace example_com { +template heap_object::~heap_object() = default; inline example_com::MyRecordOne::~MyRecordOne() = default; inline auto example_com::MyRecordOne::toYaml([[maybe_unused]] ::example_com::store_config const& config) const -> YAML::Node { @@ -560,7 +560,7 @@ auto load_document_from_string(std::string document) -> DocumentRootType { return load_document_from_yaml(YAML::Load(document)); } auto load_document(std::filesystem::path path) -> DocumentRootType { - return load_document_from_yaml(YAML::LoadFile(path)); + return load_document_from_yaml(YAML::LoadFile(path.string())); } void store_document(DocumentRootType const& root, std::ostream& ostream, store_config config={}) { auto y = toYaml(root, config); diff --git a/schema_salad/tests/cpp_tests/05_specialization.h b/schema_salad/tests/cpp_tests/05_specialization.h index d43a9d1b..3b8f2ad1 100644 --- a/schema_salad/tests/cpp_tests/05_specialization.h +++ b/schema_salad/tests/cpp_tests/05_specialization.h @@ -410,8 +410,8 @@ struct MyRecordTwo { }; } -template -example_com::heap_object::~heap_object() = default; +namespace example_com { +template heap_object::~heap_object() = default; inline auto example_com::FieldRecordA::toYaml([[maybe_unused]] ::example_com::store_config const& config) const -> YAML::Node { using ::example_com::toYaml; @@ -649,7 +649,7 @@ auto load_document_from_string(std::string document) -> DocumentRootType { return load_document_from_yaml(YAML::Load(document)); } auto load_document(std::filesystem::path path) -> DocumentRootType { - return load_document_from_yaml(YAML::LoadFile(path)); + return load_document_from_yaml(YAML::LoadFile(path.string())); } void store_document(DocumentRootType const& root, std::ostream& ostream, store_config config={}) { auto y = toYaml(root, config);