8000 update iguana by Jacyking · Pull Request #203 · qicosmos/ormpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update iguana #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 最大的支持,用户列表的用户问题会优先处理。
Expand Down Expand Up @@ -780,4 +780,4 @@ qq群: 492859173

[http://purecpp.cn/](http://purecpp.cn/ "purecpp")

[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")
[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")
4 changes: 2 additions & 2 deletions iguana/detail/itoa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ struct convert {
template <typename U, std::enable_if_t<!std::is_signed<U>::value &&
std::is_integral<U>::value>* = nullptr>
static inline char* itoa(U u, char* p) {
return convert<D>::template itoa(p, u);
return convert<D>::template itoa<>(p, u);
}

// itoa: handle signed integral operands (selected by SFINAE)
Expand Down Expand Up @@ -257,7 +257,7 @@ struct convert {
*p = '-';
p += (mask & 1);
}
p = convert<D>::template itoa(p, u);
p = convert<D>::template itoa<>(p, u);
if (D == Rev && mask)
*--p = '-';
return p;
Expand Down
5 changes: 4 additions & 1 deletion iguana/ylt/reflection/member_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,12 @@ inline constexpr std::size_t members_count() {
else if constexpr (internal::tuple_size<type>) {
return std::tuple_size<type>::value;
}
else {
else if constexpr (std::is_aggregate_v<type>) {
return internal::members_count_impl<type>();
}
else {
static_assert(!sizeof(T), "not supported type!");
Copy link
Preview
Copilot AI May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a more conventional always-false dependent static_assert pattern (e.g., static_assert(always_false::value, "Type T is not supported") ) to enhance clarity.

Suggested change
static_assert(!sizeof(T), "not supported type!");
static_assert(always_false<T>::value, "Type T is not supported");

Copilot uses AI. Check for mistakes.

}
}

template <typename T>
Expand Down
Loading
0