projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logging: fix compilation error on older C++ compilers
[folly.git]
/
folly
/
LockTraits.h
diff --git
a/folly/LockTraits.h
b/folly/LockTraits.h
index 983831e063002330a0dda0596c6fe203a81d8f26..a6cf12b596f03896bc8f28716132bb71e2254e45 100644
(file)
--- 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 =
public:
static constexpr bool has_lock_unique = true;
static constexpr bool has_lock_timed =
- decltype(timed_lock_test<Mutex>(
0
))::value;
+ decltype(timed_lock_test<Mutex>(
nullptr
))::value;
static constexpr bool has_lock_shared =
static constexpr bool has_lock_shared =
- decltype(lock_shared_test<Mutex>(
0
))::value;
+ decltype(lock_shared_test<Mutex>(
nullptr
))::value;
static constexpr bool has_lock_upgrade =
static constexpr bool has_lock_upgrade =
- decltype(lock_upgrade_test<Mutex>(
0
))::value;
+ decltype(lock_upgrade_test<Mutex>(
nullptr
))::value;
};
/**
};
/**