You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "adonis0147 (via GitHub)" <gi...@apache.org> on 2023/02/02 03:28:25 UTC
[GitHub] [doris] adonis0147 commented on a diff in pull request #16290: [Chore](build) enable -Wpedantic and update lowest gcc version to 11.1
adonis0147 commented on code in PR #16290:
URL: https://github.com/apache/doris/pull/16290#discussion_r1093971670
##########
be/src/olap/rowset/unique_rowset_id_generator.h:
##########
@@ -28,7 +28,10 @@ namespace doris {
class UniqueRowsetIdGenerator : public RowsetIdGenerator {
public:
UniqueRowsetIdGenerator(const UniqueId& backend_uid);
- ~UniqueRowsetIdGenerator();
+ ~UniqueRowsetIdGenerator() override;
+
+ UniqueRowsetIdGenerator(const UniqueRowsetIdGenerator&) = delete;
+ UniqueRowsetIdGenerator operator=(const UniqueRowsetIdGenerator&) = delete;
Review Comment:
```suggestion
UniqueRowsetIdGenerator& operator=(const UniqueRowsetIdGenerator&) = delete;
```
See [https://en.cppreference.com/w/cpp/language/copy_assignment](https://en.cppreference.com/w/cpp/language/copy_assignment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org