/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
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 =
- decltype(lock_shared_test<Mutex>(0))::value;
+ decltype(lock_shared_test<Mutex>(nullptr))::value;
static constexpr bool has_lock_upgrade =
- decltype(lock_upgrade_test<Mutex>(0))::value;
+ decltype(lock_upgrade_test<Mutex>(nullptr))::value;
};
/**
}
};
-} // detail
+} // namespace detail
/**
* LockTraits describes details about a particular mutex type.
}
};
-} // folly
+} // namespace folly