commit
94ce52d46c
8 changed files with 15 additions and 15 deletions
|
|
@ -123,7 +123,7 @@ inline To implicit_cast(typename absl::internal::identity_t<To> to) {
|
|||
//
|
||||
// Such casting results in type punning: holding an object in memory of one type
|
||||
// and reading its bits back using a different type. A `bit_cast()` avoids this
|
||||
// issue by implementating its casts using `memcpy()`, which avoids introducing
|
||||
// issue by implementing its casts using `memcpy()`, which avoids introducing
|
||||
// this undefined behavior.
|
||||
template <typename Dest, typename Source>
|
||||
inline Dest bit_cast(const Source& source) {
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@
|
|||
// family of functions as standardized in POSIX.1-2001.
|
||||
//
|
||||
// Note: While Apple provides <semaphore.h> for both iOS and macOS, it is
|
||||
// explicity deprecated and will cause build failures if enabled for those
|
||||
// explicitly deprecated and will cause build failures if enabled for those
|
||||
// platforms. We side-step the issue by not defining it here for Apple
|
||||
// platforms.
|
||||
#ifdef ABSL_HAVE_SEMAPHORE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue