Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$ In file included from prog.cc:2:
/opt/wandbox/clang-head/include/c++/v1/memory:2066:7: error: data member instantiated with function type 'int (_IO_FILE *)'
_Tp __value_;
^
/opt/wandbox/clang-head/include/c++/v1/memory:2106:35: note: in instantiation of template class 'std::__1::__compressed_pair_elem<int (_IO_FILE *), 1, false>' requested here
private __compressed_pair_elem<_T2, 1> {
^
/opt/wandbox/clang-head/include/c++/v1/memory:2305:44: note: in instantiation of template class 'std::__1::__compressed_pair<_IO_FILE *, int (_IO_FILE *)>' requested here
__compressed_pair<pointer, deleter_type> __ptr_;
^
prog.cc:6:55: note: in instantiation of template class 'std::__1::unique_ptr<_IO_FILE, int (_IO_FILE *)>' requested here
std::unique_ptr<std::FILE, decltype(std::fclose)> up(nullptr, std::fclose);
^
1 error generated.
Exit Code:
1