diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-09-30 10:04:55 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-09-30 10:15:52 +0200 |
commit | eb1b575b1d9a9a4dd7e6d39e4647c182ed90f87d (patch) | |
tree | 82f48726c7df56eb343b5de3dd8f12628be31c3c /include/openvic-dataloader/csv/ValueNode.hpp | |
parent | 84b3bab4612f99d44bc17d97c9bd821b456f8d8d (diff) |
Unify conditional Constexprs to one filepoc/escape-behavior
Add OVDL_STRING_CONSTEXPR
Add OVDL_STR_OPT_CONSTEXPR
Diffstat (limited to 'include/openvic-dataloader/csv/ValueNode.hpp')
-rw-r--r-- | include/openvic-dataloader/csv/ValueNode.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/openvic-dataloader/csv/ValueNode.hpp b/include/openvic-dataloader/csv/ValueNode.hpp index e66dac0..786f218 100644 --- a/include/openvic-dataloader/csv/ValueNode.hpp +++ b/include/openvic-dataloader/csv/ValueNode.hpp @@ -10,6 +10,8 @@ #include <variant> #include <vector> +#include <openvic-dataloader/detail/Constexprs.hpp> + #include <fmt/compile.h> #include <fmt/core.h> #include <fmt/format.h> @@ -54,7 +56,7 @@ namespace ovdl::csv { void add_to_list(internal_value_type value); bool list_is_empty() const; - inline std::string make_from_map(const IsMap<std::string> auto& map) const { + OVDL_STRING_CONSTEXPR std::string make_from_map(const IsMap<std::string> auto& map) const { std::vector<std::string_view> pre_joined(_value_list.size()); for (auto&& value : _value_list) { |