mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Introduce AK_MAKE_DEFAULT_MOVABLE macro for easier default impls
This commit is contained in:
parent
ef391de635
commit
3d3dfc8da8
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/3d3dfc8da8 Pull-request: https://github.com/SerenityOS/serenity/pull/19422
1 changed files with 5 additions and 0 deletions
|
@ -15,3 +15,8 @@ private: \
|
|||
private: \
|
||||
c(c&&) = delete; \
|
||||
c& operator=(c&&) = delete
|
||||
|
||||
#define AK_MAKE_DEFAULT_MOVABLE(c) \
|
||||
public: \
|
||||
c(c&&) = default; \
|
||||
c& operator=(c&&) = default
|
||||
|
|
Loading…
Reference in a new issue