Skip to content

Commit

Permalink
toml11 parse_file define bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Jul 11, 2021
1 parent 875b969 commit 0bc2f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/serdepp/adaptor/toml11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace serde {
inline static size_t size(toml_v& adaptor) {
return adaptor.size();
}
static toml_v parse_file(std::string_view path) { return toml::parse(path); }
static toml_v parse_file(const std::string& path) { return toml::parse(path); }
};

template<typename T> struct serde_adaptor<toml_v, T, type::struct_t> {
Expand Down

0 comments on commit 0bc2f4d

Please sign in to comment.