-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treewide: default/delete constructors #311
Conversation
Moves to modern C++11 standards. Deleted functions should be public. Signed-off-by: Rosen Penev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
uint32_t m_chunkSize; | ||
int m_prot; | ||
uint32_t m_chunkSize{}; | ||
int m_prot{~0}; | ||
}; | ||
|
||
inline Chunk::iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chunk
is not a class, namespace, or enumeration
~partial_queue() { disable(); } | ||
partial_queue(const partial_queue&) = delete; | ||
partial_queue& operator=(const partial_queue&) = delete; | ||
|
||
bool is_full() const { return m_ceiling == 0; } | ||
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_maxLayerSize; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid case style for private member m_maxLayerSize
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_maxLayerSize; } | |
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_max_layer_size; } |
mapped_type* m_data; | ||
size_type m_maxLayerSize; | ||
mapped_type* m_data{}; | ||
size_type m_maxLayerSize{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid case style for private member m_maxLayerSize
size_type m_maxLayerSize{}; | |
size_type m_max_layer_size{}; |
Moves to modern C++11 standards. Deleted functions should be public.