]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/filesystem/config/has_cxx20_atomic_ref.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / filesystem / config / has_cxx20_atomic_ref.cpp
CommitLineData
1e59de90
TL
1// Copyright 2021 Andrey Semashev
2
3// Distributed under the Boost Software License, Version 1.0.
4// See http://www.boost.org/LICENSE_1_0.txt
5
6// See library home page at http://www.boost.org/libs/filesystem
7
8#include <atomic>
9
10typedef void func_t();
11
12int main()
13{
14 func_t* func = 0;
15 std::atomic_ref< func_t* > ref(func);
16 ref.load(std::memory_order_relaxed);
17 ref.store((func_t*)0, std::memory_order_relaxed);
18 return 0;
19}