Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'std::experimental::filesystem::v1::__cxx11::path get_directory(const std::experimental::filesystem::v1::__cxx11::path&)':
prog.cc:19:71: error: no matching function for call to 'std::experimental::filesystem::v1::__cxx11::path::concat(const value_type&)'
return path.parent_path().concat(fs::path::preferred_separator);
^
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/experimental/filesystem:39:0,
from prog.cc:9:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/experimental/bits/fs_path.h:287:7: note: candidate: template<class _Source> std::experimental::filesystem::v1::__cxx11::path::_Path<_Source>& std::experimental::filesystem::v1::__cxx11::path::concat(const _Source&)
concat(_Source const& __x)
^~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/experimental/bits/fs_path.h:287:7: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/experimental/bits/fs_path.h:292:7: note: candidate: template<class _InputIterator> std::experimental::filesystem::v1::__cxx11::path::_Path<_InputIterator, _InputIterator>& std::experimental::filesystem::v1::__cxx11::path::concat(_InputIterator, _InputIterator)
concat(_InputIterator __first, _InputIterator __last)
^~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/experimental/bits/fs_path.h:292:7: note: template argument deduction/substitution failed:
prog.cc:19:71: note: candidate expects 2 arguments, 1 provided
return path.parent_path().concat(fs::path::preferred_separator);
^
Exit Code:
1