mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03: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
@ -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 New Issue
Block a user