commit | 89a50fe1ebfa09f6a5e82566e27f80708a50db4d | [log] [tgz] |
---|---|---|
author | Dimitry Ivanov <dimitry@google.com> | Tue Dec 08 11:39:29 2015 -0800 |
committer | Dimitry Ivanov <dimitry@google.com> | Tue Dec 08 11:40:51 2015 -0800 |
tree | 16ab617d63b023817165d0331e50f0acdf908ffb | |
parent | eaccfde0759c6df6011c2a1e69ca275f2e24d909 [diff] [blame] |
constexpr constructor for atfork_list_t Bug: http://b/26026986 Change-Id: Iad95383a23f81eea776bebce641c555d26547b77
diff --git a/libc/bionic/pthread_atfork.cpp b/libc/bionic/pthread_atfork.cpp index 093ffd2..2200a6c 100644 --- a/libc/bionic/pthread_atfork.cpp +++ b/libc/bionic/pthread_atfork.cpp
@@ -45,7 +45,7 @@ class atfork_list_t { public: - atfork_list_t() : first_(nullptr), last_(nullptr) {} + constexpr atfork_list_t() : first_(nullptr), last_(nullptr) {} template<typename F> void walk_forward(F f) {