Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Sep 30, 2024
1 parent a906bdb commit 51f946a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/glaze/core/read.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace glz

template <class T>
concept c_style_char_buffer = std::convertible_to<std::remove_cvref_t<T>, std::string_view> && !has_data<T>;

template <class T>
concept is_buffer = c_style_char_buffer<T> || contiguous<T>;

Expand Down
2 changes: 1 addition & 1 deletion include/glaze/json/json_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ namespace glz
return buffer.error();
}
}

template <read_json_supported T>
[[nodiscard]] error_ctx read_json(T& value, const json_t& source) noexcept
{
Expand Down
4 changes: 2 additions & 2 deletions tests/json_test/json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3500,7 +3500,7 @@ suite generic_json_tests = [] {
glz::json_t json = {{"s", "hello world"}};
expect(foo(json) == "hello world");
expect(json.dump().value() == R"({"s":"hello world"})");

std::map<std::string, std::string> obj{};
expect(not glz::read_json(obj, json));
expect(obj.contains("s"));
Expand Down Expand Up @@ -3604,7 +3604,7 @@ suite generic_json_tests = [] {
expect(json.get_array().size() == 3);
std::array<int, 3> v{};
expect(not glz::read<glz::opts{}>(v, json));
expect(v == std::array{1,2,3});
expect(v == std::array{1, 2, 3});
};

"json_t is_string"_test = [] {
Expand Down

0 comments on commit 51f946a

Please sign in to comment.