Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
Exit Code:
1
Author
anonymous
almost 5 years ago
C++
gcc 10.1.0
Author
anonymous
almost 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In instantiation of 'void f(T&&) [with T = dereferencable_l]':
prog.cc:27:25: required from here
prog.cc:10:29: error: use of deleted function 'int&& dereferencable_l::operator*() &&'
10 | [[maybe_unused]] auto v = *std::forward<T>(t);
| ^~~~~~~~~~~~~~~~~~~
prog.cc:20:9: note: declared here
20 | int&& operator*() && = delete;
| ^~~~~~~~