aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/csv/Parser.hpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2024-05-13 22:50:54 +0200
committer GitHub <noreply@github.com>2024-05-13 22:50:54 +0200
commita5a6ff376cf0ff8fa48fcd750c16395b099223a4 (patch)
treec0b7aa641b72b5f2650691cba22d17de335622f6 /include/openvic-dataloader/csv/Parser.hpp
parent725310939d2b324d79ea4193a72000e21dcc1a2a (diff)
parent458180da5e61887cd9f820e573f307d0a640128d (diff)
Merge pull request #44 from OpenVicProject/fix/error-handling
Fix bugs in #37
Diffstat (limited to 'include/openvic-dataloader/csv/Parser.hpp')
-rw-r--r--include/openvic-dataloader/csv/Parser.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openvic-dataloader/csv/Parser.hpp b/include/openvic-dataloader/csv/Parser.hpp
index ccf732a..06e7251 100644
--- a/include/openvic-dataloader/csv/Parser.hpp
+++ b/include/openvic-dataloader/csv/Parser.hpp
@@ -31,7 +31,7 @@ namespace ovdl::csv {
constexpr Parser& load_from_buffer(const char* data, std::size_t size);
constexpr Parser& load_from_buffer(const char* start, const char* end);
constexpr Parser& load_from_string(const std::string_view string);
- constexpr Parser& load_from_file(const char* path);
+ Parser& load_from_file(const char* path);
Parser& load_from_file(const std::filesystem::path& path);
constexpr Parser& load_from_file(const detail::HasCstr auto& path) {
@@ -42,7 +42,7 @@ namespace ovdl::csv {
const std::vector<csv::LineObject>& get_lines() const;
- using error_range = ovdl::detail::error_range;
+ using error_range = ovdl::detail::error_range<error::Root>;
Parser::error_range get_errors() const;
const FilePosition get_error_position(const error::Error* error) const;