Commit 6f694e3
fix: add deduction guides for Struct from std::tuple (#525)
* Types.h: add deduction guides for Struct from std::tuple
C++23 changed the generation of implicit deduction guides. This causes
the compiler to also see deduction guides for std::tuple as candidates
for sdbus::Struct.
Because of the competing guides the compiler doesn't know which one to pick.
This seems to be implemented from gcc 15 on and is thus causing breakage there.
To fix this we need to add explicit deduction guides when std::tuple is passed
to sdbus::Struct.
fixes #524
* refactor: remove std::decay_t wrapper
We need to be able to create sdbus::Structs
with element types being references.
---------
Co-authored-by: Stanislav Angelovič <stanislav.angelovic@protonmail.com>1 parent 44aa4f0 commit 6f694e3
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
0 commit comments