diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-05-19 11:28:27 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 20:41:09 +0200 |
commit | 145e246a5e9f229656bc1182bdc6c397ca8efe8a (patch) | |
tree | 715147020a48f61c672743ed0840f491b789e71b /Kernel/RTC.h | |
parent | 585e7890cdd416b77bd28c2ef853477b42c606ef (diff) | |
download | serenity-145e246a5e9f229656bc1182bdc6c397ca8efe8a.zip |
AK: Allow AK::Variant::visit to return a value
This changes Variant::visit() to forward the value returned by the
selected visitor invocation. By perfectly forwarding the returned value,
this allows for the visitor to return by value or reference.
Note that all provided visitors must return the same type - the compiler
will otherwise fail with the message: "inconsistent deduction for auto
return type".
Diffstat (limited to 'Kernel/RTC.h')
0 files changed, 0 insertions, 0 deletions