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
[C++] PollFlightInfo does not follow rule of 5 #39673
Comments
lidavidm
added a commit
that referenced
this issue
Jan 22, 2024
### Rationale for this change The current implementation is a bit painful to use due to the lack of a move constructor. ### What changes are included in this PR? - Fix a crash in PollInfo with a nullptr FlightInfo. - Declare all necessary constructors (https://en.cppreference.com/w/cpp/language/rule_of_three) ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes, this adds new copy constructors. * Closes: #39673. * Closes: #39690 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…pache#39711) ### Rationale for this change The current implementation is a bit painful to use due to the lack of a move constructor. ### What changes are included in this PR? - Fix a crash in PollInfo with a nullptr FlightInfo. - Declare all necessary constructors (https://en.cppreference.com/w/cpp/language/rule_of_three) ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes, this adds new copy constructors. * Closes: apache#39673. * Closes: apache#39690 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
raulcd
pushed a commit
that referenced
this issue
Feb 20, 2024
### Rationale for this change The current implementation is a bit painful to use due to the lack of a move constructor. ### What changes are included in this PR? - Fix a crash in PollInfo with a nullptr FlightInfo. - Declare all necessary constructors (https://en.cppreference.com/w/cpp/language/rule_of_three) ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes, this adds new copy constructors. * Closes: #39673. * Closes: #39690 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
zanmato1984
pushed a commit
to zanmato1984/arrow
that referenced
this issue
Feb 28, 2024
…pache#39711) ### Rationale for this change The current implementation is a bit painful to use due to the lack of a move constructor. ### What changes are included in this PR? - Fix a crash in PollInfo with a nullptr FlightInfo. - Declare all necessary constructors (https://en.cppreference.com/w/cpp/language/rule_of_three) ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes, this adds new copy constructors. * Closes: apache#39673. * Closes: apache#39690 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
thisisnic
pushed a commit
to thisisnic/arrow
that referenced
this issue
Mar 8, 2024
…pache#39711) ### Rationale for this change The current implementation is a bit painful to use due to the lack of a move constructor. ### What changes are included in this PR? - Fix a crash in PollInfo with a nullptr FlightInfo. - Declare all necessary constructors (https://en.cppreference.com/w/cpp/language/rule_of_three) ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes, this adds new copy constructors. * Closes: apache#39673. * Closes: apache#39690 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement requested
We declare a copy constructor but not a move constructor, and so the class ends up without a move constructor (https://en.cppreference.com/w/cpp/language/rule_of_three)
Component(s)
C++
The text was updated successfully, but these errors were encountered: