fork(2) download
  1. #include <functional>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. auto x = std::cref(&std::vector<int>::empty);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:45: error: use of deleted function ‘void std::cref(const _Tp&&) [with _Tp = bool (std::vector<int>::*)()const noexcept (true)]’
  auto x = std::cref(&std::vector<int>::empty);
                                             ^
In file included from prog.cpp:1:0:
/usr/include/c++/4.8/functional:488:10: error: declared here
     void cref(const _Tp&&) = delete;
          ^
prog.cpp:6:45: error: ‘void x’ has incomplete type
  auto x = std::cref(&std::vector<int>::empty);
                                             ^
stdout
Standard output is empty