X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FLockTraits.h;h=a6cf12b596f03896bc8f28716132bb71e2254e45;hp=b8fc553925fcf8ba4a8d20b0ff01163d3e690112;hb=82d8337f03e90168bba5b66f9383228863661e70;hpb=ed8c80a0e0988e4ce687f51ca832a00e4a6b7930 diff --git a/folly/LockTraits.h b/folly/LockTraits.h index b8fc5539..a6cf12b5 100644 --- a/folly/LockTraits.h +++ b/folly/LockTraits.h @@ -106,11 +106,11 @@ class LockInterfaceDispatcher { public: static constexpr bool has_lock_unique = true; static constexpr bool has_lock_timed = - decltype(timed_lock_test(0))::value; + decltype(timed_lock_test(nullptr))::value; static constexpr bool has_lock_shared = - decltype(lock_shared_test(0))::value; + decltype(lock_shared_test(nullptr))::value; static constexpr bool has_lock_upgrade = - decltype(lock_upgrade_test(0))::value; + decltype(lock_upgrade_test(nullptr))::value; }; /** @@ -338,7 +338,7 @@ struct LockTraitsImpl } }; -} // detail +} // namespace detail /** * LockTraits describes details about a particular mutex type. @@ -637,4 +637,4 @@ struct LockPolicyFromExclusiveToShared : public LockPolicyShared { } }; -} // folly +} // namespace folly