Skip to content

fix: add signature_of specialization for r-value references - #515

Merged
sangelovic merged 2 commits into
Kistler-Group:masterfrom
SimonBraunschmidtIBA:feat/types_rvalue_signature_of
Oct 23, 2025
Merged

fix: add signature_of specialization for r-value references#515
sangelovic merged 2 commits into
Kistler-Group:masterfrom
SimonBraunschmidtIBA:feat/types_rvalue_signature_of

Conversation

@SimonBraunschmidtIBA

Copy link
Copy Markdown
Contributor

Provide signature_of specialization for rvalue references resp.
allow when forwarding references resolve to rvalue references

signature_of<_T&&> is needed e.g. for std::map::try_emplace() when the
emplaced sdbus:: type is passed as rvalue reference, otherwise the
static_assert "Unsupported D-Bus type ..." would trigger

See #513 (comment)
for an elaborate explanation

Fixes #513

Stanislav Angelovic and others added 2 commits October 21, 2025 10:26
Provide signature_of specialization for rvalue references resp.
allow when forwarding references resolve to rvalue references

signature_of<_T&&> is needed e.g. for std::map::try_emplace() when the
emplaced sdbus:: type is passed as rvalue reference, otherwise the
static_assert "Unsupported D-Bus type ..." would trigger

See #513 (comment)
for an elaborate explanation

Signed-off-by: Simon Braunschmidt <simon.braunschmidt@iba-group.com>
@SimonBraunschmidtIBA
SimonBraunschmidtIBA marked this pull request as ready for review October 23, 2025 11:54
@sangelovic sangelovic changed the title signature_of<> for rvalue references fix: add signature_of specialization for r-value references Oct 23, 2025
@sangelovic
sangelovic merged commit 126ac9f into Kistler-Group:master Oct 23, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rvalue reference specialization for signature_of

2 participants