boostorg / boostorg/hana

Make pair trivially move constructible

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

Description

On the develop branch hana::pair isn't is_trivially_move_constructible anymore! On the master branch it is.

```
#include
#include

int main(){
auto p = boost::hana::make_pair(0, 0);
static_assert(std::is_trivially_copy_constructible< decltype(p) >::value, "");
static_assert(std::is_trivially_move_constructible< decltype(p) >::value, ""); // Error
}
```

I tested with clang-TOT and GCC 7.1.1 (20170509)

Contributor guide

Open the contributing guide

Research direction

Begin by running the supplied minimal program on the develop and master branches, then locate boost::hana::pair and compare its construction behavior. Done means the std::is_trivially_move_constructible assertion passes on the affected branch without regressing the copy-constructibility assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.