folly icon indicating copy to clipboard operation
folly copied to clipboard

illegal identifier _T and _A at fbvector at line 1567

Open ZXShady opened this issue 1 year ago • 0 comments

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_

ZXShady avatar Apr 09 '24 16:04 ZXShady