-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Inconsistent use of type alias. #1507
Comments
That is indeed inconsistent. Thanks for reporting. A pull request would be more than welcome! |
Note that e.g. |
I just had a look at the source of const_reference
operator[](size_type __n) const
{ return *(this->_M_impl._M_start + __n); } I also tried to do this in |
In my opinion it will make the code much more clear, unlike |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Inside
basic_json
the aliasreference
andconst_reference
are used in inconsistently, for example the methoditeration_proxy
usesconst_reference
as a parameter type, whilepush_back
usesconst basic_json&
.Which one should be used? I think the non-alias are better and i would like make a PR if you agree.
Sorry about my horrible english.
The text was updated successfully, but these errors were encountered: