Commit Graph

899 Commits

Author SHA1 Message Date
Beman Dawes
7abef6488f Merge pull request #39 from cmuellner/for-develop
Fix errno propagation in space(p, ec).
2017-01-09 17:37:43 -05:00
Beman
170f483655 Add test/config_info.cpp to increase macro state reporting in hopes of easing debugging on remote machines. 2017-01-08 15:23:42 -05:00
Beman
4ccb6c38f2 Start release history for 1.64 2016-12-30 14:52:52 -05:00
Beman
2550f407f4 MinGW defines __MINGW32__ rather than _MSC_VER, so also test for __MINGW32__ to see if setenv/unsetenv workaround needed. 2016-12-30 10:09:31 -05:00
Christoph Müllner
7f1a6992e3 Fix errno propagation in space(p, ec).
The space(p, ec) implementation assigned a wrong
error value to the given error_code object.
Instead of getting the error value from errno,
the code used the value '-1!=0'.

Signed-off-by: Christoph Müllner <christophm30@gmail.com>
2016-12-12 00:42:54 +01:00
Beman
163631cc7d ticket #12574 was just user confusion, but are the tests are worth keeping. 2016-11-28 08:29:08 -05:00
Beman
93429f24a1 Update release_history.html for pull request #31. 2016-11-26 14:27:33 -05:00
Beman Dawes
fca046d0c4 Merge pull request #31 from faithandbrave/patch-1
fix docs for signature stem(), extension() member functions
2016-11-26 14:18:26 -05:00
Beman
15c7706111 Fix create directory testing boo boo; Turns out " " is a valid file and directory name on Linux (and I'm guessing other POSIX-like systems). Add a POSIX-only test; "/foo" was reported to cause a crash on an earlier version. Don't test this on Windows since a user may well have sufficient permissions to create a directory in root. 2016-11-24 14:34:00 -05:00
Beman
4e4374336c Fix #7307, remove_all(dirname,ec) throws on write protected directories. This is a tough one to test. There are three internal function calls where errors might arise, and it would take too much time to write tests for each of those cases. Someday we will have Titus Winter's mock installable file system, but for now are relying on code inspection rather than testing. 2016-11-23 12:02:09 -05:00
Beman
e34b838041 Document a couple of pull requests. 2016-11-23 10:51:47 -05:00
Beman Dawes
cbefb2b9f0 Merge pull request #30 from thtrummer/develop
Fix warning, build error, for GCC under Cygwin
2016-11-23 10:46:37 -05:00
Beman Dawes
51e51fc735 Merge pull request #34 from tbeu/tbeu-patch-1
Fix link text in reference.
2016-11-23 10:39:57 -05:00
Beman
216720de55 Fix #12495, create_directories() crashes when passed empty string as path, from Samantha Ritter. Also affected create_directory(). Charles Olivi submitted a pull request with some particularly helpful test cases. 2016-11-23 09:58:43 -05:00
Beman
5004d7b177 Fix #12578 - Bug in directory_iterator, recursive_directory_iterator, equality testing of copied iterator also at end. 2016-11-23 09:21:32 -05:00
Beman
a3c1014b21 Tweak release history. 2016-11-23 05:33:53 -05:00
Beman
48faf2b1ee Add deprecated path::generic() 2016-11-22 16:51:45 -05:00
Beman
2f4b634c0c Add some stem() and extension() test cases 2016-11-02 17:03:03 -04:00
Rene Rivera
c8f1b16989 Add, and update, documentation build targets. 2016-10-07 23:07:33 -05:00
tbeu
ce0be4bfe7 Fix link text 2016-09-13 14:01:19 +02:00
Akira Takahashi
0027b3ef53 fix signature stem(), extension() member functions
`stem()` and `extension()` member functions doesn't have parameter.
2016-07-07 15:55:34 +09:00
Thomas Trummer
e4d01fc006 Fix build error when using C++11 under Cygwin
http://www.boost.org/development/tests/develop/developer/output/timber-cygwin-boost-bin-v2-libs-filesystem-test-operations_test-test-gcc-5-4-0-debug.html

(Assuming the #ifdef is a copy & paste error)
2016-07-05 11:33:12 +02:00
Thomas Trummer
3c2c9812f0 Fix warning for GCC under Cygwin 2016-07-04 14:14:11 +02:00
Beman Dawes
65a27cc520 Merge pull request #27 from fxb/cppcx_generic_keyword
Rename generic() to generic_path(), since generic is a keyword in C++/CX
2016-04-27 09:20:39 -04:00
Felix Bruns
fcb98ee37e Rename generic() to generic_path(), since generic is a keyword in C++/CX.
When using Boost.Filesystem from a project compiled as C++/CX code,
compilation fails with a syntax error, because generic is a keyword.

    error C2059: syntax error: 'generic'

See section "Generic interfaces" in C++/CX here:

    https://msdn.microsoft.com/en-us/library/hh755792.aspx
2016-04-27 14:11:08 +02:00
Beman
de527c6862 Refactor push_directory() logic so it is easier to reason about. 2016-04-18 10:41:07 -04:00
Beman
a682eaa476 Remove two constants that are no longer used. Quiets warnings. 2015-12-01 11:01:11 -05:00
Beman
2f6391b931 Add class path constexpr constants separator and dot of the type appropriate for the platform, and add class path member query functions filename_is_dot() and filename_is_dot_dot(). These add convenience and the implementations may be more efficient that user coded equivalent functions. Also add detail functions is_directory_separator() and is_element_separator(), and replace all uses of local is_separator() in path.cpp with detail::is_directory_separator(). 2015-12-01 10:17:45 -05:00
Beman
7b31aa0259 Fix typo in issue # and link (Daniel Krügler) 2015-11-21 08:06:49 -05:00
Beman
3c344a5f0b Revert to lexical functions back to being members of class path. This is not the time to redesign the library's lexical vs operational conventions. It would break existing users mental model of lexical vs operational.
See doc/relative_proposal.html#Add-lexical-functions for additional rationale.
2015-10-25 13:28:49 -04:00
Beman
b0091c2eeb Revert to lexical functions being members of class path. This is not the time to redesign the library's lexical vs operational conventions. It would break existing users mental model of lexical vs operational. 2015-10-25 08:23:40 -04:00
Beman
8c179bf1df Add 1.58.0 BOOST_SCOPED_ENUM fix history 2015-10-25 05:47:45 -04:00
Beman
7e3e5ef60c Fix #11733, Missing unistd.h include in boost/libs/filesystem/src/unique_path.cpp by apply a patch from Idar Tollefsen. 2015-10-16 16:03:45 -04:00
Beman
06968ee032 Fix pull request 17, 'some_function() noexcept = default;' from Antony Polukhin, by never relying on "= default". Antony's pull request would have fixed the problem interaction with noexcept by eliminating the noexcept. I preferred to retain the noexcept rather than the "= default", as applying "= default" has been exceedingly troublesome for both VC++ and GCC due to interactions between the two C++11 features. GCC interactions varied not just for the version, but also for the platform. 2015-10-08 07:19:55 -04:00
Beman
74c5f5fe3e Fix a forward declaration that was missed in a prior pull request. This clears a GCC warning. 2015-10-08 07:04:13 -04:00
Beman
fb365908ad Clear GCC warnings. 2015-10-08 05:03:51 -04:00
Beman
c026d612f2 String file feature cleanup: Add string_file.hpp to filesystem.hpp. Change string_file.hpp to use boost/filesystem/fstream.hpp for I/O. Add string_file_tests function to operations_unit_test.cpp. 2015-10-07 10:11:18 -04:00
Beman
c3f9a2ec92 Correct some file names 2015-09-18 10:39:38 -04:00
Beman
865102a87a Initial commit 2015-09-18 07:49:00 -04:00
Beman
a5ecdd44d2 Acknowledge minor fixes. 2015-09-17 07:50:28 -04:00
Beman
5d31852813 Fix typo; thanks to Jonathan Wakely. 2015-09-16 15:32:57 -04:00
Beman Dawes
719fc1f18d Merge pull request #16 from MarcelRaad/patch-1
Remove unused deprecated include
2015-09-16 15:28:00 -04:00
Beman
f4644ef881 Define BOOST_FILESYSTEM_NO_CXX11_DEFAULTED_RVALUE_REFS for GCC <= 4; GCC 4.8.5 was failing on FreeBSD although not on other platforms. Since move semantics is an optimization, it doesn't break anything to be conservative. 2015-09-15 07:38:28 -04:00
Marcel Raad
53c502cb47 Remove unused deprecated include
The comment in boost/iterator.hpp mentions that the file is obsolete and will be deprecated, and it is not used anyway.
2015-09-13 21:40:29 +02:00
Beman
9befbd2448 Fix bug in file_status and recursive_directory_iterator: C++ turns an explicit constructor with all arguments except first defaulted into non-explicit single argument constructor. 2015-09-12 09:27:39 -04:00
Beman
2d4035269b Add GCC 4.4 to compilers that did not support defaulted rvalue refs. 2015-09-11 15:11:46 -04:00
Beman
4f0afc361f Add #11062 to list of resolved tickets. 2015-09-10 15:48:07 -04:00
Beman
320423af98 Added size() function to class path. Resolves #6874, Path should have a size() member function. 2015-09-08 16:46:05 -04:00
Beman
461118d68c Remove debug stmts that should have been removed by prior commit. 2015-09-08 16:21:01 -04:00
Beman
40526c67f2 Clean up some minor cygwin test problems. 2015-09-08 15:40:25 -04:00