diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-02 17:17:01 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-02 17:17:01 +0000 |
| commit | 40a01d5314ffc3c5f4c379cd69015f962dde5f72 (patch) | |
| tree | 33725944bdc9f3baa95beb2ee8612d1a6c1dbaf5 /libcxx/include/mutex | |
| parent | 2640a0a5e576ed0474cebc6efd89fe65e1ebbd38 (diff) | |
| download | bcm5719-llvm-40a01d5314ffc3c5f4c379cd69015f962dde5f72.tar.gz bcm5719-llvm-40a01d5314ffc3c5f4c379cd69015f962dde5f72.zip | |
Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later).
llvm-svn: 321658
Diffstat (limited to 'libcxx/include/mutex')
| -rw-r--r-- | libcxx/include/mutex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/mutex b/libcxx/include/mutex index fbcc0989fa9..52e39b0fb1f 100644 --- a/libcxx/include/mutex +++ b/libcxx/include/mutex @@ -91,9 +91,9 @@ struct defer_lock_t {}; struct try_to_lock_t {}; struct adopt_lock_t {}; -constexpr defer_lock_t defer_lock{}; -constexpr try_to_lock_t try_to_lock{}; -constexpr adopt_lock_t adopt_lock{}; +inline constexpr defer_lock_t defer_lock{}; +inline constexpr try_to_lock_t try_to_lock{}; +inline constexpr adopt_lock_t adopt_lock{}; template <class Mutex> class lock_guard |

