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

Header getters return a copy instead of a const ref #49

Open
alessandrothea opened this issue Dec 4, 2023 · 0 comments
Open

Header getters return a copy instead of a const ref #49

alessandrothea opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@alessandrothea
Copy link
Contributor

I notices that a couple of header getters copy the header rather than returning a const ref.

FragmentHeader get_header() const { return *header_(); }
TimeSliceHeader get_header() const { return m_header; }

Is there a reason for that?

@bieryAtFnal bieryAtFnal added the question Further information is requested label Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants