Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use data() instead of begin() in Protocols.cpp (project-chip#33476)
* Use data() instead of begin() in Protocols.cpp The GetProtocolName() function tries to store the result of std::array<T>::begin() in a raw pointer type, but this no longer works on some newer versions of clang, since clang now returns an iterator object. This change fixes this by switching to std::array<T>::data() instead, which always returns a raw pointer. * Restyled by whitespace --------- Co-authored-by: Restyled.io <[email protected]>
- Loading branch information