Skip to content

Commit

Permalink
Replacing constexpr with HPX_CXX14_CONSTEXPR where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Jan 23, 2018
1 parent d07c0e1 commit 941ac5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hpx/runtime/threads/thread_id_type.hpp
Expand Up @@ -94,25 +94,25 @@ namespace threads {
return lhs.thrd_ != rhs.thrd_;
}

friend constexpr bool operator<(
friend HPX_CXX14_CONSTEXPR bool operator<(
thread_id_type const& lhs, thread_id_type const& rhs)
{
return std::less<void const*>{}(lhs.thrd_, rhs.thrd_);
}

friend constexpr bool operator>(
friend HPX_CXX14_CONSTEXPR bool operator>(
thread_id_type const& lhs, thread_id_type const& rhs)
{
return std::less<void const*>{}(rhs.thrd_, lhs.thrd_);
}

friend constexpr bool operator<=(
friend HPX_CXX14_CONSTEXPR bool operator<=(
thread_id_type const& lhs, thread_id_type const& rhs)
{
return !(rhs > lhs);
}

friend constexpr bool operator>=(
friend HPX_CXX14_CONSTEXPR bool operator>=(
thread_id_type const& lhs, thread_id_type const& rhs)
{
return !(rhs < lhs);
Expand Down

0 comments on commit 941ac5b

Please sign in to comment.