-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move static asserts in separate classes to enable default move constr…
…uctors Summary: # Context This is a follow-up of D39355689. For short, having explicit destructors disables the generation of move constructors, which means we might be making copies when calling `std::move(x)` on those instances. # Solution Again, see D39355689. We can move the static asserts in a destructor of an empty class, with the main class inheriting from it. Reviewed By: agampe, arnaudvenet Differential Revision: D51585268 fbshipit-source-id: d0d1f54c8086a49811f0a164fdcb20b88132b9d2
- Loading branch information
1 parent
8e291da
commit 0979bdc
Showing
7 changed files
with
194 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.