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

illegal identifier _T and _A at fbvector at line 1567 #2174

Open
ZXShady opened this issue Apr 9, 2024 · 0 comments
Open

illegal identifier _T and _A at fbvector at line 1567 #2174

ZXShady opened this issue Apr 9, 2024 · 0 comments

Comments

@ZXShady
Copy link

ZXShady commented Apr 9, 2024

template <class _T, class _A>
  friend _T* relinquish(fbvector<_T, _A>&);

  template <class _T, class _A>
  friend void attach(fbvector<_T, _A>&, _T* data, size_t sz, size_t cap);

the C++ standard disallows usage of names that start with a leading underscore followed by capital letter and any two underscores together or a leading underscore in the global namespace as those are reserved for the implementation and may lead to undefined behavior the easy fix is to put the underscore after not before T_ and A_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant