summaryrefslogtreecommitdiff
path: root/Kernel/UBSanitizer.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-05-19 11:28:27 -0400
committerAndreas Kling <kling@serenityos.org>2021-05-19 20:41:09 +0200
commit145e246a5e9f229656bc1182bdc6c397ca8efe8a (patch)
tree715147020a48f61c672743ed0840f491b789e71b /Kernel/UBSanitizer.h
parent585e7890cdd416b77bd28c2ef853477b42c606ef (diff)
downloadserenity-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/UBSanitizer.h')
0 files changed, 0 insertions, 0 deletions