aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/csv/Parser.cpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-09-07 14:39:27 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-07 14:39:27 +0200
commit3bb2b18d326ef64c869e8b3c38b8ecf58d45657c (patch)
treef9603723433fc5d1913c2921bf0579e367ffadc4 /src/openvic-dataloader/csv/Parser.cpp
parentbd7b2cd70e99d2f98640efd82ff656bccd5da617 (diff)
Fix documentation for _run_load_funcadd/documentation
Remove type can't be deduced comments
Diffstat (limited to 'src/openvic-dataloader/csv/Parser.cpp')
-rw-r--r--src/openvic-dataloader/csv/Parser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/openvic-dataloader/csv/Parser.cpp b/src/openvic-dataloader/csv/Parser.cpp
index ca11b05..8ee0423 100644
--- a/src/openvic-dataloader/csv/Parser.cpp
+++ b/src/openvic-dataloader/csv/Parser.cpp
@@ -106,7 +106,7 @@ Parser<Encoding> Parser<Encoding>::from_file(const std::filesystem::path& path)
///
/// Expected Use:
/// @code {.cpp}
-/// _run_load_func(&BufferHandler::<load_function>, <arguments>);
+/// _run_load_func(std::mem_fn(&BufferHandler::<load_function>), <arguments>);
/// @endcode
///
/// @tparam Type
@@ -129,14 +129,12 @@ constexpr void Parser<Encoding>::_run_load_func(detail::LoadCallback<BufferHandl
template<EncodingType Encoding>
constexpr Parser<Encoding>& Parser<Encoding>::load_from_buffer(const char* data, std::size_t size) {
- // Type can't be deduced?
_run_load_func(std::mem_fn(&BufferHandler::load_buffer_size), data, size);
return *this;
}
template<EncodingType Encoding>
constexpr Parser<Encoding>& Parser<Encoding>::load_from_buffer(const char* start, const char* end) {
- // Type can't be deduced?
_run_load_func(std::mem_fn(&BufferHandler::load_buffer), start, end);
return *this;
}
@@ -149,7 +147,6 @@ constexpr Parser<Encoding>& Parser<Encoding>::load_from_string(const std::string
template<EncodingType Encoding>
constexpr Parser<Encoding>& Parser<Encoding>::load_from_file(const char* path) {
_file_path = path;
- // Type can be deduced??
_run_load_func(std::mem_fn(&BufferHandler::load_file), path);
return *this;
}