Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Errors, i.e., error: use of deleted function 'boost::filesystem3::..... #23

Open
John-Lu95 opened this issue Mar 9, 2022 · 0 comments

Comments

@John-Lu95
Copy link

John-Lu95 commented Mar 9, 2022

Hi,
When I try to compile with 'scons', I meet errors.
The below is part of compiling error information:
....
....
/usr/local/include/boost/type_traits/is_convertible.hpp:135:75: error: use of deleted function 'boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)'
static bool const value = sizeof( boost::detail::checker::_m_check(_m_from, 0) )
....
....
/usr/local/include/boost/filesystem/v3/operations.hpp:581:9: error: use of deleted function 'boost::shared_ptrboost::filesystem3::detail::dir_itr_imp::shared_ptr(const boost::shared_ptrboost::filesystem3::detail::dir_itr_imp&)'
...
...
/usr/include/c++/5/ext/new_allocator.h:120:4: error: use of deleted function 'boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)'
{ ::new((void )__p) _Up(std::forward<_Args>(__args)...); }
....
....
/usr/include/c++/5/bits/stl_construct.h:75:7: error: use of deleted function 'boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)'
{ ::new(static_cast<void
>(__p)) _T1(std::forward<_Args>(__args)...); }
.....
.....

My OS is Ubantu-16.04.7 LTS.
I have tried to change the version of c++(11, 17) and libboost(all, 1.58)-dev.
But the errors still exist.
Do you have any ideas to solve it?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant