mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Simplify type trait usage (remove ::value usage)
This commit is contained in:
parent
cd7ebdb2ed
commit
4957dace64
3 changed files with 9 additions and 10 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue