Opened 9 years ago

Closed 7 years ago

#9454 closed Bugs (fixed)

Boost Filesystem not compiling when BOOST_FILESYSTEM_NO_DEPRECATED is defined

Reported by: myasnikovmaksim@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

If you define BOOST_FILESYSTEM_NO_DEPRECATED in the boost/config/user.hpp Boost Filesystem Library fails to compile emitting error from boost/filesystem/path.hpp(476): both BOOST_FILESYSTEM_DEPRECATED and BOOST_FILESYSTEM_NO_DEPRECATED are defined
I suggest to undefine BOOST_FILESYSTEM_NO_DEPRECATED when BOOST_FILESYSTEM_SOURCE is defined in boost/filesystem/config.hpp
Best regards, Maksim.

Attachments (1)

config.hpp.patch (395 bytes ) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 9 years ago

Attachment: config.hpp.patch added

comment:1 by anonymous, 7 years ago

The issue still exists in Boost 1.58.0

comment:2 by Beman Dawes, 7 years ago

Resolution: fixed
Status: newclosed

Patch pushed to develop branch. Will merge to master once enough regression tests have cycled.

Thanks,

--Beman

Note: See TracTickets for help on using tickets.