34dd2c7718
Add a new path member function: "path normal() const;" and change the old deprecated normalize() non-const function to be implemented in terms of the new function. The implementation remains the same, except for returning by value rather than modifying in place. Motivation: Jamie Alsop has identified removal of redundant .. and . elements (i.e. normalization) as a need closely related to the relative path functionality requested by numerous Boost issue requests, the C++ LWG, and NB comments to the Filesystem TS. Given that both lexical and operational relative functionality is needed, there is less risk in providing a well-documented path::normal() lexical function.
Beman
2015-08-08 16:29:44 -04:00
6e92c9a8b2
Add experimental path::generic() function returning generic formatted (i.e. separators are forward slashes). Motivation: may be simpler than having a family of generic_*string functions.
Beman
2015-08-08 12:11:35 -04:00
8a8c8abecc
Rename semi_canonical() to weak_canonical. The STL uses "weak" to denote reduced requirements.
Beman
2015-08-08 05:56:55 -04:00
9706dbb9b1
Revert "Change the name of path::relative to path::relative_to to distinguish it a bit from path::relative_path."
Beman
2015-08-08 05:44:30 -04:00
d5fb8323f8
Change the name of path::relative to path::relative_to to distinguish it a bit from path::relative_path.
Beman
2015-08-07 16:50:47 -04:00
4487aa4200
Update the Release History for 1.59.0
Beman
2015-07-26 20:55:25 -04:00
6c33e4375d
Final, with Linux example output updated.
Beman
2015-07-26 17:46:28 -04:00
a984f70f56
A few final changes on Windows. Linux examples still to be tested and output captured.
Beman
2015-07-26 11:59:30 -04:00
03d1256acc
Rename bld scripts to build. Get started modernizing, correcting, and updating the tutorial. Continue work on example programs.
Beman
2015-07-26 10:52:15 -04:00
989d108440
Switch to using html_include_files (see github.com/Beman/command-line-tools) to suck in the actual examples source code. Get rid of some unneeded includes.
Beman
2015-07-25 15:39:16 -04:00
e9d72fa16c
Upgrade build infrastructure. Modernize tutorial examples to use C++11 to simplify code and make it easier to understand. Initial tutorial edits.
Beman
2015-07-25 14:47:52 -04:00
9205205043
Cleanup some symbol encoding and presentation issues.
Beman
2015-07-22 08:29:45 -04:00
5dd97cd12f
Remove the macro generation documentation (doc/src) source. This was a temporary expedient to all generation of the standard library TS working paper and the Boost documentation to share the same source file. Now that the TS is published, it is no longer needed. It was always a pain to maintain.
Beman
2015-07-22 07:40:56 -04:00
7e7e14f54a
Hand merge some tweaks from endian library.
Beman
2015-05-24 10:12:31 -04:00
3a02e54625
haiku: don't crash because of unsupported locale in libstdc++
Adrien Destugues
2014-11-15 01:05:16 +13:00
706cf988a9
Revise get_temp_directory() test cases. Drive-by warning removal and partial fix for TortoiseGit-related test harness crashes.
Beman
2015-02-03 12:11:44 -05:00
424f09019c
Rewrite Windows implementation of temp_directory_path() to (1) avoid GetTempPath() failure if path length > 130 (ticket #5300) and (2) provide a more sensible sequence of directories than provided by GetTempPath(), per boost list discussion "[filesystem] temp_directory_path() behavior on Windows".
Beman
2015-02-03 11:31:57 -05:00
a89b7af83a
Comment out test case until fix is applied. Drive by fix of two curly brace errors that happened to cancel each other out.
Beman
2015-01-31 08:56:07 -05:00
06bddf3bc3
Rename typedef causing conflict with cygwin libraries. Fix refactoring missed in create_directory_symlink() that only affected cygwin tests. Clear gcc warning on cygwin tests.
Beman
2015-01-31 08:53:02 -05:00
01bbe99241
Refactor operations error handling helpers to (1) be less confusing and (2) fix a Windows problem where ::SetLastError() values were getting cleared before they could be retrieved by the error handling helpers.
Beman
2015-01-31 08:00:59 -05:00
41e8c45fab
Center page
Beman
2015-01-28 10:56:50 -05:00
96d5cdda3b
Remove test_folder. Content is now in branch test-files/utf-8, so that master and develop conform to Boost file naming policy.
Beman
2015-01-11 17:55:55 -05:00
eb9cac384e
Edit comments to clarify dependencies.
Beman
2015-01-10 11:35:47 -05:00
c0b5754ab8
Fix ticket #10388, an occasional failure of temp_directory_path to deal correctly with the trailing separator. A path member function remove_trailing_separator() was added publicly since this may be useful to users.
Beman
2015-01-10 09:31:44 -05:00
a9561f945f
Update Version History. Fixes#4550.
Beman
2015-01-05 11:30:39 -05:00
bb5a0ff09d
Clear warnings, including new warnings from VC++ 2015 preview.
Beman
2015-01-05 10:34:24 -05:00
f17852e98d
Add test case described in ticket #4611. Behavior checked against the TS, and is working as specified. Closed the ticket as "wontfix", since there is no implementation defect.
Beman
2014-12-30 18:09:16 -05:00
9fd93a2008
Fix ticket #7018, operations_test.cpp does not correctly use setenv, including the suggested setenv* void fix. Added comment explaining choice of void fix rather than _putenv fix.
Beman
2014-12-30 11:59:53 -05:00
e4e5bb8bf5
Fix ticket #6945 by applying patch from Kaylyn Bogle
Beman
2014-12-30 10:48:46 -05:00
0dfb7171fb
Finalize issue reporting before requesting comments. Also fix some inspect issues.
Beman
2014-12-29 09:18:12 -05:00
aa94a72fc4
Add style sheet from Boost.Endian. Copy so it can be customized for Boost.Filesystem as needed without worrying about impact on other libraries.
Beman
2014-12-26 10:41:22 -05:00
8f75aec0e7
Remove the install as it did not work as expected.
Beman
2014-12-26 10:11:38 -05:00
704f4e328d
Add a comment, and two BOOST_ASSERTs to detect the possible infinite loop described in ticket 4438 in case my analysis that the infinite loop will never happen is wrong.
Beman
2014-12-26 10:07:43 -05:00
fb824af6e3
Add file_size to Jamfile
Beman
2014-12-26 09:53:30 -05:00
1ac23b633e
No point in inspecting the Chinese names being tested.
Beman
2014-12-24 08:37:41 -05:00
5a0e0609c5
Switch to the VC++ codepage 950 codecvt facet. Verified output correct.
Beman
2014-12-24 08:25:54 -05:00
785d521b54
Add infrastructure. Use UTF-8.
Beman
2014-12-24 07:17:56 -05:00
3143a61080
Add generic issue_test project (with source files) to speed issue testing by providing some canned infrastructure.
Beman
2014-12-23 07:34:03 -05:00
a39af865c5
Add project "headers" that touches all filesystem header files. This causes Visual Studio "Find/Replace in files" to work properly for filesystem header files.
Beman
2014-12-23 07:27:28 -05:00
9848729fb8
Upgrade to VC++ 2015 Preview.
Beman
2014-12-04 15:35:33 -05:00
4b4b3d8853
Add support for the Wind River VxWorks RTOS. Thanks to Rogerio Dos Santos.
Beman
2014-12-04 07:23:21 -05:00
490c2c3298
For all path_traits convert() and dispatch() functions provide two overloads, one with a "const codecvt_type&" argument, and one without. The overload without a codecvt argument calls path::codecvt() iff a conversion actually needs to be performed. Change all uses of path_traits convert() and dispatch() functions call the appropriate overload, rather than calling with path::codecvt() as a default. This limits the impact of locale("") initialization failures on Linux and other non-BSD POSIX systems to programs that actually depend on locale(""). It further ensures that exceptions thrown as a result of such failures occur after main() has started, and so can be caught.
Beman
2014-10-27 19:20:17 -04:00
f0611a5a0e
Merge branch 'master' of github.com:boostorg/filesystem
Beman
2014-10-27 09:00:16 -04:00
d57509c558
For compiled operational function detail::copy_file, pass detail::copy_options, a plain-old enum, rather than a BOOST_SCOPED_ENUM. We cannot pass a BOOST_SCOPED_ENUM to a compled function because it will result in an undefined reference if the library is compiled with -std=c++0x but the use is compiled in C++03 mode, or vise versa. Fixes tickets #6124, #6779, and #10038.
Beman
2014-10-24 10:58:42 -04:00
9979e06d63
Correct version number
Beman
2014-10-13 08:16:26 -04:00
d5a2658d16
Move constant used only on Windows into Windows-specific helpers. Quiets clang warning message.
Beman
2014-09-04 09:24:20 -04:00
0041ea9646
Removed unused codecvt buffer size definitions long since moved to path_traits. Quiets clang warning.
Beman
2014-09-04 09:13:57 -04:00
76d209567f
Refactor dot_path and dot_dot_path into functions, to prevent path constructor being called before main() starts. In theory that is harmless when path::value_type is the same as value_type of the ctor Source, but eliminating it simplifies reasoning about program correctness.
Beman
2014-08-22 11:13:16 -04:00
dc1fd98dc6
Add metadata file.
Daniel James
2014-08-18 14:58:47 +01:00
5b4e1b5580
Remove comments about mutexes. They are a distraction and less relevant as C++11 support becomes widespread.
Beman
2014-08-18 09:01:16 -04:00
245341aaa9
Update release history.
Beman
2014-08-17 15:40:56 -04:00
35096ca056
Add 9219.cpp plus infrastructure and path.cpp logging
Beman
2014-08-17 10:55:01 -04:00
4d64f34c01
Add non-const overloads for the value_type and string_type to avoid calling codecvt(). Fixes ticket #9219.
Beman
2014-08-17 09:22:32 -04:00
5229dd663e
9054 and 10228 are now closed.
Beman
2014-08-07 16:45:40 -04:00
8ef629c906
Add __OpenBSD__ to the operating systems that "expect their string parameters to be in UTF-8 encoding and nothing else." Fixes#8352
Beman
2014-08-06 12:24:44 -04:00
0e16e5bdff
Replace more <boost/test/prg_exec_monitor.hpp> usage with <boost/detail/lightweight_main.hpp>.
Beman
2014-08-06 12:19:29 -04:00
bf1339e282
Remove use of <boost/test/prg_exec_monitor.hpp>. It has caused trouble for years, and I'm tired of fighting with it. The last straw was adding a Cygwin gcc toolset, only to have <boost/test/prg_exec_monitor.hpp> fail to link. Change to always use <boost/detail/lightweight_main.hpp>, which is trouble-free.
Beman
2014-08-06 12:16:06 -04:00
6512ae2ced
Initial commit before merge from ts-develop.
Beman
2014-08-06 08:07:16 -04:00
63ad0348aa
Add hello_filesystem.cpp and related infrastructure so we have a handy starting point for building quick tests.
Beman
2014-08-05 15:14:04 -04:00
750a82e20d
Revert "Merge branch 'develop' of github.com:boostorg/filesystem into develop"
Beman
2014-08-05 09:16:57 -04:00
4610afc49e
Merge branch 'develop' of github.com:boostorg/filesystem into develop
Beman
2014-08-04 20:25:07 -04:00
91c4517a8c
Add a useless initialization to quiet the Clang static analyzer, closing ticket #8954.
Beman
2014-07-28 16:47:25 -04:00
02b5767bf1
Shorten name of operations_test temp directory to shorten console commands when debugging.
Beman
2014-07-28 08:30:24 -04:00
e8c90f7f15
Add test for ODR violations such as forgetting to inline a function in a header. Thanks to STL for pointing out this testing technique.
Beman
2014-07-25 17:58:15 -04:00