Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190513 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic -pthread

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc: In function 'int main()':
prog.cc:13:13: error: use of deleted function 'MyStruct<T>& MyStruct<T>::operator=(const MyStruct<T>&) [with T = int]'
   13 |         a = b;
      |             ^
prog.cc:4:19: note: declared here
    4 |         MyStruct& operator= (const MyStruct&) = delete;
      |                   ^~~~~~~~
Exit Code:
1