-
Committer:
Facebook GitHub Bot
-
Author(s):
Alfred Fuller
-
Date:
2021-02-26 20:57:38 UTC
-
Revision ID:
git-v1:a990998a489aa7a06e7023c6ae52df5e5ab1c59c
Fix forward_like rvalue->lvalue check
Summary: The static cast and forward were backwards. Previously it happily converted an rvalue to a const lvalue. Now it causes the exact same static_assert failure as std::forward in every rvalue->lvalue case.
Reviewed By: yfeldblum
Differential Revision: D26680263
fbshipit-source-id: f1ca4c4bfdd6333d24fe3c406d5373a2f72dea31