-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow Journal to be copied/moved #2292
Conversation
Jenkins Build SummaryBuilt from this commit Built at 20171204 - 22:51:49 Test Results
|
Codecov Report
@@ Coverage Diff @@
## develop #2292 +/- ##
===========================================
- Coverage 70.96% 70.94% -0.02%
===========================================
Files 691 691
Lines 51663 51649 -14
===========================================
- Hits 36661 36644 -17
- Misses 15002 15005 +3
Continue to review full report at Codecov.
|
This is not a topic I feel strongly about, but I'd like to do some sanity checking. I think it was Vinnie's position that Journals should be immovable. A Log, on the other hand, is a very lightweight reference to a Journal, that that's what we should be moving around. I'm guessing Vinnie would want to know what you want to do with the Journal that can't be done with a Log. |
@scottschurr Could you point me to the |
Gaaaah. I should know better than to try to talk about this stuff from memory. Sorry, my mistake. If I'd looked at your code, instead of just reading the headline, I'd see that the problem you really want to solve is making the Personally, I have nothing against making It would be good to see the use cases you're trying to solve before we make the change. |
I've completed a visual once-over of
The implicitly provided copy assignment operator is currently being provided under deprecated behavior since the destructor and copy constructor are user-declared. I recommend implicitly defaulting all three of these, or explicitly defaulting all three. Either path will eliminate the dependence on deprecated behavior. |
@scottschurr: I believe this is a brief description of Brad's use case: https://ripplelabs.slack.com/archives/C02GE9NBA/p1511279746000806 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I've squashed and made the commit message clearer per @scottschurr's suggestion. The motivation: I have a type implementing a generic code that needs to log in some cases, but the generic code doesn't know anything about logging. The most convenient approach was for me to store the |
@HowardHinnant: Thanks for the reference. @bachase, sorry for piping up before I really understood what was going on. I'll try to avoid tripping over myself next time. Carry on. |
Piping up is good! Please continue to do so when something stands out to you. |
In 0.90.0-b3 |
I could be convinced this is an undesirable change, but it greatly simplifies some consensus related work I am doing.