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

update iguana #203

merged 2 commits into from
May 8, 2025

Conversation

Jacyking
Copy link
Collaborator
@Jacyking Jacyking commented May 8, 2025

No description provided.

@qicosmos qicosmos requested review from Copilot and qicosmos May 8, 2025 03:05
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates key reflection and conversion logic for the Iguana library along with a version bump in the README.

  • In iguana/ylt/reflection/member_count.hpp, the generic branch in the members_count function is split to separately handle aggregate types and unsupported types.
  • In iguana/detail/itoa.hpp, explicit template argument syntax is added to the itoa calls for clarity.
  • The README version is updated from 1.0.8 to 1.0.9.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
iguana/ylt/reflection/member_count.hpp Updated members_count to handle aggregate types explicitly and add a static_assert branch.
iguana/detail/itoa.hpp Added explicit template arguments to itoa calls for improved template deduction.
README.md Updated version number to reflect the new release.

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.

Copy link
Owner
@qicosmos qicosmos left a comment

Choose a reason for hiding this comment

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

LGTM

@qicosmos qicosmos merged commit a709164 into qicosmos:master May 8, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0