Author
anonymous
about 4 years ago
C++
gcc 10.1.0
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In function 'int main()': prog.cc:7:4: error: request for member 'reset' in 'p', which is of non-class type 'std::shared_ptr<int>()' 7 | p.reset(); | ^~~~~