warning: identifier '_c' preceded by whitespace in a literal operator declaration is deprecated
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
boost-hana 1.88
clang 20.1.0
c++26
```cxx
// boost/bool.h: 198
namespace literals {
template
constexpr auto operator"" _c() {
return hana::llong({c...})>{};
}
}
```
```bash
/boost/hana/bool.hpp:198:35: warning: identifier '_c' preceded by whitespace in a literal operator declaration is deprecated
```
Contributor guide
Research direction
Start at boost/bool.h line 198 and inspect the literal operator declaration that triggers the Clang 20.1.0 warning under C++26. Confirm the warning with the reported compiler setup, adjust the declaration to remove the deprecated form, and run the existing Boost.Hana test suite to ensure literal behavior is unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100