Constructor Template Auto Deduction guides
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
It seems with Hana in Boost 1.67 it doesn't have Compiler Template Auto Deduction guides.
This doesn't compile:
```c++
#include
namespace hana = boost::hana;
int main() {
auto args = hana::tuple(10, 0.5, "hello world");
}
```
But if we add some deduction guides, it can compile:
```c++
#include
namespace hana = boost::hana;
namespace boost::hana {
template
tuple(Args&&...) -> tuple;
}
int main() {
auto args = hana::tuple(10, 0.5, "hello world");
}
```
Would be a good addition.
Contributor guide
Research direction
Start by reproducing the example with boost/hana.hpp and inspect how hana::tuple is defined and constructed. Determine the supported language modes and verify the deduction-guide approach against existing tuple behavior. Done means the reported example compiles in supported configurations and the behavior has regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100