Skip to content

Commit

Permalink
🎨 Organize include files
Browse files Browse the repository at this point in the history
  • Loading branch information
yosh-matsuda committed Dec 3, 2023
1 parent 57da0e2 commit cd8acc9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions include/cpp_yyjson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
====================================================*/

#pragma once
#include <fmt/format.h>
#include <yyjson.h>
#include <algorithm>
#include <nameof.hpp>
#include <optional>
#include <ranges>
#include <unordered_map>
#include <variant>
#include <vector>

#include <fmt/format.h>
#include <yyjson.h>

namespace yyjson
{
inline constexpr auto yyjson_required_version = 0x000600;
Expand Down Expand Up @@ -1268,7 +1269,7 @@ namespace yyjson

template <base_of_value T>
requires is_value_type && (std::remove_cvref_t<T>::is_const_reference ||
(std::is_const_v<std::remove_reference_t<T&&>>))
(std::is_const_v<std::remove_reference_t<T &&>>))
abstract_value(T&& t) noexcept // NOLINT
: doc_(std::forward<T>(t).doc_),
val_(doc_.copy_value(std::forward<T>(t))),
Expand All @@ -1278,7 +1279,7 @@ namespace yyjson

template <base_of_value T>
requires is_value_type && (!std::remove_cvref_t<T>::is_const_reference &&
!(std::is_const_v<std::remove_reference_t<T&&>>))
!(std::is_const_v<std::remove_reference_t<T &&>>))
abstract_value(T&& t) noexcept // NOLINT
: doc_(std::forward<T>(t).doc_),
val_(std::forward<T>(t).val_),
Expand All @@ -1295,8 +1296,8 @@ namespace yyjson
template <base_of_value T>
requires is_reference &&
(is_const ||
(!std::remove_cvref_t<T>::is_const && !std::is_const_v<std::remove_reference_t<T&&>>)) &&
(!(std::remove_cvref_t<T>::is_value_type && std::is_rvalue_reference_v<T&&>))
(!std::remove_cvref_t<T>::is_const && !std::is_const_v<std::remove_reference_t<T &&>>)) &&
(!(std::remove_cvref_t<T>::is_value_type && std::is_rvalue_reference_v<T &&>))
explicit abstract_value(T&& t) noexcept
: abstract_value(std::forward<T>(t).doc_, std::forward<T>(t).val_)
{
Expand Down

0 comments on commit cd8acc9

Please sign in to comment.