Simplify type trait usage (remove ::value usage)

This commit is contained in:
Tim Wojtulewicz 2023-07-06 14:04:13 -07:00
parent cd7ebdb2ed
commit 4957dace64
3 changed files with 9 additions and 10 deletions

View file

@ -49,7 +49,7 @@ void BasicThread::SetName(const char* arg_name)
void BasicThread::SetOSName(const char* arg_name)
{
// Do it only if libc++ supports pthread_t.
if constexpr ( std::is_same<std::thread::native_handle_type, pthread_t>::value )
if constexpr ( std::is_same_v<std::thread::native_handle_type, pthread_t> )
zeek::util::detail::set_thread_name(arg_name,
reinterpret_cast<pthread_t>(thread.native_handle()));
}