Skip to content

Conversation

@Yaraslaut
Copy link
Member

This PR adds check of division for integral types when build with debug mode

@Yaraslaut Yaraslaut force-pushed the improvement/runtime_division_check_in_debug branch 3 times, most recently from 06e04c4 to a523489 Compare June 23, 2024 06:26
Copy link
Member

@christianparpart christianparpart left a comment

Choose a reason for hiding this comment

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

this looks like something similar i had in mind as well.

I however thought about generic validators for assignment. this would not work for guarding against division though. I agree.

General validation would only make sense if the user of boxed-cpp pays if and only if validation was requested (meant to be present). If no validation is required, then no code should be generated. 🤔 (future work ideas) :)

@Yaraslaut Yaraslaut force-pushed the improvement/runtime_division_check_in_debug branch from a523489 to 52e0033 Compare September 27, 2024 12:41
@Yaraslaut Yaraslaut merged commit c0ff849 into master Sep 27, 2024
10 checks passed
@Yaraslaut Yaraslaut deleted the improvement/runtime_division_check_in_debug branch September 27, 2024 12:44
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.

3 participants