boostorg / boostorg/hana

integral_constant does not model Euclidean Ring

Open
#240 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
1.9k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

consider this:
BOOST_HANA_CONSTANT_CHECK(hana::uint_c<1u << 31> \* hana::uint_c<2> == hana::uint_c<0>);

(p.s.: i love you and your library (nohomo))

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the exact BOOST_HANA_CONSTANT_CHECK expression from the issue and inspect how integral_constant models the Euclidean Ring concept. Done means the shown multiplication and comparison check passes without changing the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.