boostorg / boostorg/hana

BOOST_HANA_ADAPT_STRUCT for templates?

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

Description

I would love to be able to adapt structs like this:

```
template
struct foo {
T member;
}

BOOST_HANA_ADAPT_STRUCT_TPL(T, foo, member);
```

Looking at the `accessors_impl` interface, it feels like something doable...

Contributor guide

Open the contributing guide

Research direction

Start by reading the accessors_impl interface and the existing BOOST_HANA_ADAPT_STRUCT adaptation behavior. Determine the required behavior for the templated foo example in the issue, including how its template parameter is handled. Done means templated structs can be adapted through the requested macro with coverage for the demonstrated case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.