1 Star 0 Fork 54

zcy543814 / asio2

forked from 骑士 / asio2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
remark.md 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
骑士 提交于 2020-12-23 16:21 . v2.7 add remote data call

Modify the code to be compatible with the UE4 "check" macro

Modify file /fmt/ranges.h
// change the function "check(...)" to "(check)(...)"
// line 81,109
/// tuple_size and tuple_element check.
template <typename T> class is_tuple_like_ {
  template <typename U>
  static auto (check)(U* p) -> decltype(std::tuple_size<U>::value, int());
  template <typename> static void (check)(...);

 public:
  static FMT_CONSTEXPR_DECL const bool value =
      !std::is_void<decltype(check<T>(nullptr))>::value;
};
Modify file /beast/http/detail/type_traits.hpp
// change the function "check(...)" to "(check)(...)"
// line 35
template<class T>
class is_header_impl
{
    template<bool b, class F>
    static std::true_type (check)(
        header<b, F> const*);
    static std::false_type (check)(...);
public:
    using type = decltype((check)((T*)0));
};
Modify file /beast/http/basic_parser.hpp
// change the body and header limit to no limit.
// line 71
std::uint64_t body_limit_ = (std::numeric_limits<std::uint64_t>::max)();
    //default_body_limit(is_request{});   // max payload body
// line 78
std::uint32_t header_limit_ = (std::numeric_limits<std::uint32_t>::max)();     // max header size
Modify file /beast/http/basic_file_body.hpp
// to support copyable

Modify the code to be compatible with the mysql "IS_NUM" macro

Modify file /asio2/http/detail/http_parser.h
// Append "HTTP_" before all macro definitions.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zcy543814/asio2.git
git@gitee.com:zcy543814/asio2.git
zcy543814
asio2
asio2
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891