span constructor no address (#723)v2.0.0
commit1995e86d1ad70519465374fb4876c6ef7c9f8c61
authorAnna Gringauze <annagrin@microsoft.com>
Mon, 20 Aug 2018 00:10:53 +0000 (19 17:10 -0700)
committerNeil MacIntosh <neilmac@fb.com>
Mon, 20 Aug 2018 00:10:53 +0000 (19 17:10 -0700)
treefc526b4c268caa91f445f094c23f0fadd8b4607f
parent585f48ce55c720a3f812f79ef57596e67f52eb89
span constructor no address (#723)

* Changed &arr[0] to std::array<T, N>::data and std::address_of to protect against overloaded operator&.

* Removed the usage of `std::addressof` because it is a C++ 17 feature. Using decay for C arrays instead.

* Add unit tests for #662.

* Added c++17 test configurations for clang5.0 and clang6.0

* fixed CppCoreCheck pointer decay warning
include/gsl/span
tests/span_tests.cpp