Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

$
prog.cc: In function 'int main()':
prog.cc:5:26: error: use of deleted function 'std::atomic<int>::atomic(const std::atomic<int>&)'
   std::atomic_int atom = 1;
                          ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.1/atomic:668:7: note: declared here
       atomic(const atomic&) = delete;
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.1/atomic:672:17: note:   after user-defined conversion: 'constexpr std::atomic<int>::atomic(std::atomic<int>::__integral_type)'
       constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
                 ^~~~~~
Exit Code:
1