AK: Introduce AK_MAKE_DEFAULT_MOVABLE macro for easier default impls

This commit is contained in:
Ben Wiederhake 2023-06-16 15:56:20 +02:00 committed by Sam Atkins
parent ef391de635
commit 3d3dfc8da8
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00

View file

@ -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