As the library evolves over time, names sometimes
change or old features are removed to make way for new features. To ease transition, Boost.Filesystem deprecates
the old names and features, but by default continues to provide many of them.
The deprecated names and other workarounds can be suppressed by defining macro
BOOST_FILESYSTEM_NO_DEPRECATED, and this is recommended for all new code.
In the table, ✔ indicates a synonym or other
workaround is provided unless
BOOST_FILESYSTEM_NO_DEPRECATED is defined.
Component or location
Old name, now deprecated
✔
New name
class path
branch_path()
✔
parent_path()
class path
canonize()
Function removed
class path
default_name_check()
✔
Function removed
class path
default_name_check(name_check)
✔
Function removed
class path
default_name_check_writable()
✔
Function removed
class path
directory_string()
✔
string
class path
external_directory_string()
✔
native()
class path
external_file_string()
✔
native()
class path
file_string()
✔
string()
class path
has_branch_path()
✔
has_parent_path()
class path
has_leaf()
✔
has_filename()
class path
is_complere()
✔
is_absolute()
class path
leaf()
✔
filename()
class path
native_directory_string()
✔
string()
class path
native_file_string()
✔
string()
class path
normalize()
✔
Function removed
class path
path(const string_type& str, name_check)
✔
Function removed. Workaround ignores name_check
argument.
No longer supported; API selection is always automatic.
Macro definitions
BOOST_POSIX_API
No longer supported; API selection is always automatic.
Macro definitions
BOOST_WINDOW_PATH
No longer supported; native path format selection is always automatic.
Macro definitions
BOOST_POSIX_PATH
No longer supported; native path format selection is always automatic.
Deprecation rationale
initial_path function
Full implementation of initial_path() would require
support from the C++ runtime startup code, and that doesn't seem likely to
happen. Depending on the user to call initial_path() at the
beginning of main() is too error prone. An equivalent
function can trivially be provided by a user.
Пересмотрено29 декабря 201429 December, 2014[ORIG_END] -->
Использование, модификация и распространение регулируются Лицензией на программное обеспечение Boost версии 1.0. См.www.boost.org/LICENSE_1_0.txt
Статья Filesystem Deprecated Features раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.