From 5e1b9f8893115c33df289a2a145e40bcc6866862 Mon Sep 17 00:00:00 2001 From: Jacyking <791026912@qq.com> Date: Thu, 8 May 2025 11:00:05 +0800 Subject: [PATCH 1/2] update iguana --- iguana/detail/itoa.hpp | 4 ++-- iguana/ylt/reflection/member_count.hpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/detail/itoa.hpp b/iguana/detail/itoa.hpp index f861a43b..85b5446a 100644 --- a/iguana/detail/itoa.hpp +++ b/iguana/detail/itoa.hpp @@ -219,7 +219,7 @@ struct convert { template ::value && std::is_integral::value>* = nullptr> static inline char* itoa(U u, char* p) { - return convert::template itoa(p, u); + return convert::template itoa<>(p, u); } // itoa: handle signed integral operands (selected by SFINAE) @@ -257,7 +257,7 @@ struct convert { *p = '-'; p += (mask & 1); } - p = convert::template itoa(p, u); + p = convert::template itoa<>(p, u); if (D == Rev && mask) *--p = '-'; return p; diff --git a/iguana/ylt/reflection/member_count.hpp b/iguana/ylt/reflection/member_count.hpp index eac83906..343b06a1 100644 --- a/iguana/ylt/reflection/member_count.hpp +++ b/iguana/ylt/reflection/member_count.hpp @@ -178,9 +178,12 @@ inline constexpr std::size_t members_count() { else if constexpr (internal::tuple_size) { return std::tuple_size::value; } - else { + else if constexpr (std::is_aggregate_v) { return internal::members_count_impl(); } + else { + static_assert(!sizeof(T), "not supported type!"); + } } template From b09c6be2e8d9631e8f94374e99634c21acbe7737 Mon Sep 17 00:00:00 2001 From: Jacyking <43704572+Jacyking@users.noreply.github.com> Date: Thu, 8 May 2025 11:01:27 +0800 Subject: [PATCH 2/2] update iguana --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab585941..9dad61cc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ # 一个很酷的Modern C++ ORM库----ormpp -iguana版本1.0.8 +iguana版本1.0.9 https://github.com/qicosmos/iguana.git [谁在用ormpp](https://github.com/qicosmos/ormpp/wiki), 也希望ormpp用户帮助编辑用户列表,也是为了让更多用户把ormpp用起来,也是对ormpp 最大的支持,用户列表的用户问题会优先处理。 @@ -780,4 +780,4 @@ qq群: 492859173 [http://purecpp.cn/](http://purecpp.cn/ "purecpp") -[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp") \ No newline at end of file +[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")