From 3bb2b18d326ef64c869e8b3c38b8ecf58d45657c Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Thu, 7 Sep 2023 08:39:27 -0400 Subject: Fix documentation for _run_load_func Remove type can't be deduced comments --- src/openvic-dataloader/csv/Parser.cpp | 5 +---- src/openvic-dataloader/v2script/Parser.cpp | 5 +---- 2 files changed, 2 insertions(+), 8 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 Parser::from_file(const std::filesystem::path& path) /// /// Expected Use: /// @code {.cpp} -/// _run_load_func(&BufferHandler::, ); +/// _run_load_func(std::mem_fn(&BufferHandler::), ); /// @endcode /// /// @tparam Type @@ -129,14 +129,12 @@ constexpr void Parser::_run_load_func(detail::LoadCallback constexpr Parser& Parser::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 constexpr Parser& Parser::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& Parser::load_from_string(const std::string template constexpr Parser& Parser::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; } diff --git a/src/openvic-dataloader/v2script/Parser.cpp b/src/openvic-dataloader/v2script/Parser.cpp index 47885e5..c2e7e9d 100644 --- a/src/openvic-dataloader/v2script/Parser.cpp +++ b/src/openvic-dataloader/v2script/Parser.cpp @@ -109,7 +109,7 @@ Parser Parser::from_file(const std::filesystem::path& path) { /// /// Expected Use: /// @code {.cpp} -/// _run_load_func(&BufferHandler::, ); +/// _run_load_func(std::mem_fn(&BufferHandler::), ); /// @endcode /// /// @tparam Type @@ -130,13 +130,11 @@ constexpr void Parser::_run_load_func(detail::LoadCallback