danra
commented at 1:38 PM on August 26, 2017:
contributor
CFeeRate and CTxMemPoolEntry have explicitly defined copy ctors which has the same functionality as the implicit default copy ctors which would have been generated otherwise.
Besides being redundant, it violates the rule of three (see https://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming) ).
(Of course, the rule of three doesn't -really- cause a resource management issue here, but the reason for that is exactly that there is no need for an explicit copy ctor in the first place since no resources are being managed).
promag
commented at 4:05 PM on August 26, 2017:
member
Remove periods from PR title and commit message.
Otherwise trivial ACK8a14a86.
danra renamed this: Remove redundant explicitly defined CFeeRate copy ctor. Remove redundant explicitly defined CFeeRate copy ctor on Aug 26, 2017
danra force-pushed on Aug 26, 2017
danra
commented at 4:08 PM on August 26, 2017:
contributor
No need for two commits on a 8-line-changed patch doing the same thing.
Remove redundant explicitly defined copy ctors
CFeeRate and CTxMemPoolEntry have explicitly defined copy ctors which has the same functionality as the implicit default copy ctors which would have been generated otherwise.
Besides being redundant, it violates the rule of three (see https://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming) ).
(Of course, the rule of three doesn't -really- cause a resource management issue here, but the reason for that is exactly that there is no need for an explicit copy ctor in the first place since no resources are being managed).
CFeeRate has an explicitly defined copy ctor which has the same functionality as the implicit default copy ctor which would h
ave been generated otherwise.
b426e24678
danra force-pushed on Aug 27, 2017
danra
commented at 10:31 PM on August 27, 2017:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-22 06:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me