Skip to content

Commit

Permalink
mark default ctor as private instead of delete
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrumbler committed Dec 14, 2023
1 parent 07515fe commit b8cb0f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ namespace namespaze_ { \
} \
}; \
uint8_t _baseFields[baseSize]; \
private: \
name_() = default;\
public: \
name_() = delete;\
name_(name_&&) = delete;\
name_(name_ const&) = delete;\
__VA_ARGS__ \
Expand Down Expand Up @@ -275,8 +276,9 @@ namespace namespaze_ { \
return instance; \
} \
}; \
private: \
name_() = default;\
public: \
name_() = delete;\
name_(name_&&) = delete;\
name_(name_ const&) = delete;\
__VA_ARGS__ \
Expand Down

0 comments on commit b8cb0f0

Please sign in to comment.