Opened 9 years ago

Last modified 9 years ago

#9598 new Support Requests

no operator found which takes a left-hand operand of type 'boost::filesystem::directory_iterator'

Reported by: krys@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.54.0 Severity: Showstopper
Keywords: filesystem iterator Cc:

Description

Hi,

I'm working with the Boost C++ library since a long time and suddenly I got stranges error when I compile my software with Visual Studio 2012 (in debug 64 bits). I have absolutely no idea of the problem and the "output" does not really help me.

Here are the kind of errors I got (the output):

_libraries\lib_Boost\boost/iterator/iterator_facade.hpp(847): error C2059: syntax error : ','

And the following one too :

I'm working with the Boost C++ library since a long time and suddenly I got stranges error when I compile my software with Visual Studio 2012 (in debug 64 bits). I have absolutely no idea of the problem and the "output" does not really help me.

Here are the kind of errors I got (the output):

_libraries\lib_Boost\boost/iterator/iterator_facade.hpp(847): error C2059: syntax error : ','

And the following one too :

_libraries\lib_Boost\boost/filesystem/operations.hpp(798): error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'boost::filesystem::directory_iterator' (or there is no acceptable conversion)
          _libraries\lib_Boost\boost/filesystem/path.hpp(621): could be 'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path &)'
          _libraries\lib_Boost\boost/filesystem/path.hpp(622): or       'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path::string_type &)'
          _libraries\lib_Boost\boost/filesystem/path.hpp(623): or       'bool boost::filesystem::operator !=(const boost::filesystem::path::string_type &,const boost::filesystem::path &)'
          _libraries\lib_Boost\boost/filesystem/path.hpp(624): or       'bool boost::filesystem::operator !=(const boost::filesystem::path &,const boost::filesystem::path::value_type *)'
          _libraries\lib_Boost\boost/filesystem/path.hpp(625): or       'bool boost::filesystem::operator !=(const boost::filesystem::path::value_type *,const boost::filesystem::path &)'
          while trying to match the argument list '(boost::filesystem::directory_iterator, boost::filesystem::directory_iterator)'

Does someone has an idea that can help me to find the reason of theses errors ? Is there some compilation options that can help to find the problem ?

I only have theses 2 errors (a lot of time !!)

Feel free to contact me by email... I'm also available through Skype.

Thanks

Attachments (1)

boost_log.zip (228.7 KB ) - added by krys@… 9 years ago.
Compiler output

Download all attachments as: .zip

Change History (4)

comment:1 by anonymous, 9 years ago

BTW,

It is impossible to provide a small "repro" because the software is really too big and I don't have (yes, it is legal stuffs) to provide the full source code !

But, I can allow someone to take control of my machine over the internet (by example with TeamViewer, it is free) ... it will be faster and efficient (Just a few seconds to see the problems and start looking at it !)

by krys@…, 9 years ago

Attachment: boost_log.zip added

Compiler output

comment:2 by anonymous, 9 years ago

Hi,

The problem is fixed.

It seems to me that it is the VS2012 compiler that drives crazy !

Please, close this ticket.

Thanks

comment:3 by viboes, 9 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes
Note: See TracTickets for help on using tickets.