1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // UNSUPPORTED: c++98, c++03, c++11 11 // <shared_mutex> 12 13 // template <class Mutex> class shared_lock; 14 15 // shared_lock(shared_lock const&) = delete; 16 17 #include <shared_mutex> 18 19 std::shared_timed_mutex m; 20 21 int main() 22 { 23 std::shared_lock<std::shared_timed_mutex> lk0(m); 24 std::shared_lock<std::shared_timed_mutex> lk = lk0; 25 } 26