Skip to content
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

Port the project to C++11 - Part 2 #72

Merged
merged 12 commits into from
Sep 26, 2022
Merged

Conversation

lzaoral
Copy link
Member

@lzaoral lzaoral commented Aug 3, 2022

See commit messages.

@lzaoral lzaoral requested a review from kdudka August 3, 2022 15:27
@lzaoral lzaoral self-assigned this Aug 3, 2022
Copy link
Member

@kdudka kdudka left a comment

Choose a reason for hiding this comment

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

Thanks! Overall it looks good. Two minor comments inline...

There is no point in closing std::ifstream in a destructor manually since
that will be done either way in its own destructor.
... because negative line number does not make any sense and
boost::file_parser_error::line also returns unsigned long.and pass msg by
a const reference.
... to avoid excessively copies of std::string rvalues.
Copy link
Member

@kdudka kdudka left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@lzaoral
Copy link
Member Author

lzaoral commented Sep 26, 2022

Thanks for the review, @kdudka!

@lzaoral lzaoral merged commit d939290 into csutils:main Sep 26, 2022
@lzaoral lzaoral deleted the c++11-part2 branch September 26, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants