Skip to content

Conversation

@18thday
Copy link
Contributor

@18thday 18thday commented Dec 25, 2025

No description provided.

Coord2D coord;
unsigned radius;
Coord2D coord{};
unsigned radius = 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

разные способы инициализации, лучше использовать в едином стиле

lhs << "{";

if (!rhs.empty()) {
lhs << "\n";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поскольку тут строка а не символ, то можно было сразу объединить оба

Copy link
Contributor Author

@18thday 18thday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GanjaMember следующие комментарии:

  • много дублирования кода
  • UB при const_cast
  • есть некорректные сигнатуры функций

@GanjaMember
Copy link

@GanjaMember следующие комментарии:

  • много дублирования кода
  • UB при const_cast
  • есть некорректные сигнатуры функций

Добрый день, спасибо вам за подробные комментарии. Ошибки учту при выполнении следующих домашних заданий

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants