Skip to content

Commit d10e13d

Browse files
committed
Avoid static const variables in types.hpp
1 parent 436f9c3 commit d10e13d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pfs/types.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace pfs {
3030

31-
static const uid_t INVALID_UID = (uid_t)-1;
32-
static const pid_t INVALID_PID = (pid_t)-1;
33-
static const ino_t INVALID_INODE = (ino_t)0;
31+
constexpr uid_t INVALID_UID = (uid_t)-1;
32+
constexpr pid_t INVALID_PID = (pid_t)-1;
33+
constexpr ino_t INVALID_INODE = (ino_t)0;
3434

3535
// Note: We only support values that exist post 2.6.32.
3636
enum class task_state

0 commit comments

Comments
 (0)