I overlooked this possibility in #14028
refactor: Lift prevector default vals to the member declaration #14266
pull Empact wants to merge 1 commits into bitcoin:master from Empact:prevector-defaults changing 1 files +8 −8-
Empact commented at 7:22 AM on September 19, 2018: member
-
Lift prevector default vals to the member declaration d2eee87928
- fanquake added the label Refactoring on Sep 19, 2018
-
MarcoFalke commented at 12:28 PM on September 19, 2018: member
Are there any performance or other implications?
-
Empact commented at 1:50 PM on September 19, 2018: member
Main argument for this is that it is protective against another constructor being added but neglecting to initialize these vars properly.
-
promag commented at 8:41 PM on September 19, 2018: member
utACK d2eee87, change looks good because members are always initialized.
-
l2a5b1 commented at 3:18 PM on September 22, 2018: contributor
utACK d2eee87 nice one.
nit: perhaps initialize
_unionand_sizewith an empty initializer list{}:_size {};_union {};. -
ken2812221 commented at 9:39 AM on September 27, 2018: contributor
utACK d2eee87928781ab3082d4279aa6f19641a45e801
- MarcoFalke deleted a comment on Dec 13, 2018
-
sipa commented at 5:49 PM on December 13, 2018: member
@MarcoFalke I expect that this will have no effect on performance (the default initializers being invoked instead of delegating to the default constructor should do the exact same thing).
utACK
-
practicalswift commented at 2:39 PM on December 20, 2018: contributor
utACK d2eee87928781ab3082d4279aa6f19641a45e801
-
DrahtBot commented at 9:33 AM on January 12, 2019: member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
No conflicts as of last run.
-
practicalswift commented at 1:38 PM on April 29, 2019: contributor
Current version has four utACK:s -- ready for merge? :-)
-
Empact commented at 7:47 AM on April 30, 2019: member
Five ;)
-
scravy commented at 1:31 PM on April 30, 2019: contributor
utACK d2eee87928781ab3082d4279aa6f19641a45e801
- MarcoFalke renamed this:
Lift prevector default vals to the member declaration
refactor: Lift prevector default vals to the member declaration
on Apr 30, 2019 - MarcoFalke added this to the milestone 0.19.0 on Apr 30, 2019
- MarcoFalke merged this on May 6, 2019
- MarcoFalke closed this on May 6, 2019
- MarcoFalke referenced this in commit 3632143ebb on May 6, 2019
- sidhujag referenced this in commit e97c1bc114 on May 7, 2019
- random-zebra referenced this in commit e0239f801d on May 22, 2020
- PastaPastaPasta referenced this in commit 3325df2cc1 on Jun 27, 2021
- PastaPastaPasta referenced this in commit cdbf7957d2 on Jun 28, 2021
- PastaPastaPasta referenced this in commit 612b7e8fab on Jun 29, 2021
- PastaPastaPasta referenced this in commit 90f2117558 on Jul 1, 2021
- PastaPastaPasta referenced this in commit 7b1d8c5e53 on Jul 1, 2021
- PastaPastaPasta referenced this in commit bb27dde3cc on Jul 8, 2021
- PastaPastaPasta referenced this in commit 698ca44c98 on Jul 10, 2021
- MarcoFalke locked this on Dec 16, 2021
Milestone
0.19.0