fork download
  1. #include <deque>
  2. #include <memory>
  3.  
  4. std::deque<int> q;
  5.  
  6. std::shared_ptr<bool> f()
  7. {
  8. return q.pop_front;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'std::shared_ptr<bool> f()':
prog.cpp:8:11: error: cannot convert 'std::deque<_Tp, _Alloc>::pop_front<int, std::allocator<int> >' from type 'void (std::deque<int>::)() noexcept' to type 'std::shared_ptr<bool>'
  return q.pop_front;
           ^
stdout
Standard output is empty