Commit Graph

1137 Commits

Author SHA1 Message Date
Daniel James
a8751d3648 Use doc/src/images in iostreams.
[SVN r63152]
2010-06-20 18:04:30 +00:00
Steven Watanabe
9fc89eaf00 Allow bzip2_decompressor to process multiple concatenated streams. Fixes #3853.
[SVN r63057]
2010-06-17 19:14:14 +00:00
Steven Watanabe
a190028717 Make basic_file and basic_file_sync Flushable. Fixes #2998.
[SVN r63039]
2010-06-17 15:19:32 +00:00
Steven Watanabe
42a952118b Fix gzip errors. direct_streambuf should always have true_eof set.
[SVN r63038]
2010-06-17 14:32:06 +00:00
Steven Watanabe
38a2eb9b34 Make sure that direct_streambuf and indirect_streambuf are reset correctly on open. Fixes #4102.
[SVN r63036]
2010-06-17 03:46:38 +00:00
Steven Watanabe
e078a3ed6e Replace GENERIC_ALL with GENERIC_READ | GENERIC_WRITE. Fixes #2996.
[SVN r63035]
2010-06-17 03:19:04 +00:00
Steven Watanabe
01cbcb493d Make concept_adapter work with custom char_traits. Fixes #2356.
[SVN r63034]
2010-06-17 02:52:42 +00:00
Steven Watanabe
b57d15b71f Fix definition of multichar_dual_use_filter_tag. Fixes #3689.
[SVN r63033]
2010-06-17 02:05:36 +00:00
Steven Watanabe
1bc3f51c69 Make gzip_decompressor a DualUseFilter. Fixes #1579.
[SVN r63031]
2010-06-17 01:37:02 +00:00
Steven Watanabe
d63b79fbf5 Attempt to fix compilation on xlc
[SVN r63023]
2010-06-16 16:56:36 +00:00
Steven Watanabe
d0648da422 Make symmetric_filter compile with wchar_t. Fixes #3279.
[SVN r63006]
2010-06-15 22:24:24 +00:00
Steven Watanabe
854cb321a9 Make aggregate_filter work with wide characters. Fixes #3851.
[SVN r62994]
2010-06-15 19:54:45 +00:00
Steven Watanabe
b4640aff40 Make sure that the crc for zlib is reset when we reuse a filter. This should fix the gzip errors that I'm seeing in the trunk tests.
[SVN r62984]
2010-06-15 17:07:54 +00:00
Steven Watanabe
af44921792 Fix openmode error handling for Posix systems.
[SVN r62972]
2010-06-15 14:43:20 +00:00
Steven Watanabe
900c436fee Fix infinite loop in symmetric_filter_test
[SVN r62966]
2010-06-15 04:16:11 +00:00
Steven Watanabe
417552d692 Throw an exception on an unexpected end of file in bzip2_decompressor instead of going into an infinite loop. Fixes #2783.
[SVN r62965]
2010-06-15 02:52:42 +00:00
Steven Watanabe
b37e8fc658 Make sure that the bzip2 filters can be closed even if no input has been read. Fixes #3348.
[SVN r62962]
2010-06-15 01:22:50 +00:00
Steven Watanabe
43c8489154 Make sure that compressing an empty string works.
[SVN r62960]
2010-06-15 01:02:06 +00:00
Steven Watanabe
0b2aa0a969 Avoid calling BZ2_bzcompress after it has said that it's done. Fixes #2411. ([62952] is also necessary to make the test case from the ticket work.)
[SVN r62957]
2010-06-14 23:36:43 +00:00
Steven Watanabe
acd4a0ad97 Don't end the stream produced by a reading through a symmetric_filter prematurely. Fixes #2318.
[SVN r62952]
2010-06-14 21:42:23 +00:00
Steven Watanabe
5d678a2a01 Allow building zlib 1.2.4+, using a glob to include only source files that actually exist. Fixes #4091.
[SVN r62937]
2010-06-14 17:48:16 +00:00
Steven Watanabe
2bfebf9f24 Open files in append mode on Windows instead of seeking to the end at every write when std::ios_base::app is passed. Fixes #3323.
[SVN r62935]
2010-06-14 16:09:47 +00:00
Steven Watanabe
fd81a28296 Rejigger file_descriptors handling of std::ios_base::openmode to match std::fstream. In particular, truncate existing files, if std::ios_base::trunc is passed. Refs #3323.
[SVN r62934]
2010-06-14 15:56:00 +00:00
Steven Watanabe
6c80a454b8 Document missing members of file_descriptor*. Fixes #3955.
[SVN r62909]
2010-06-13 15:09:16 +00:00
Steven Watanabe
7803ec6b9d Add BOOST_IOSTREAMS_DECL to file_descriptor_source and file_descriptor_sink. Fixes #4335.
[SVN r62811]
2010-06-11 18:55:31 +00:00
Daniel James
0fee787b22 Small documentation fixes.
[SVN r62608]
2010-06-08 23:11:37 +00:00
Daniel James
8033d784f0 Typo.
[SVN r62460]
2010-06-06 07:17:41 +00:00
Steven Watanabe
69f700a1b5 Fix a minor html formatting glitch
[SVN r62153]
2010-05-22 19:30:12 +00:00
Daniel James
ad21b92ec9 Merge iostreams. Fixes #4135 and some small tweaks for clang.
[SVN r61641]
2010-04-28 08:29:11 +00:00
Daniel James
75f6f6e809 Fix compile error for Boost.Iostreams on clang.
The test still fails at runtime, although I don't think that's anything
to do with the newline filter. It seems to be caused by the combination
of Boost.Test and `<boost/iostreams/filter/test.hpp>`.

[SVN r61531]
2010-04-24 13:00:32 +00:00
Daniel James
bb51391533 Only support the templated constructor for types with an
'external_string_type' member. Refs #4135.

Using SFINAE, I might add a workaround for compilers that don't support
it, although I'm not sure if there are any that Iostreams supports.

[SVN r61497]
2010-04-22 22:51:24 +00:00
Daniel James
6213d80c5d Merge some link fixes and release notes.
[SVN r61474]
2010-04-21 23:00:35 +00:00
Daniel James
47ab9903c3 Iostreams release notes.
[SVN r61357]
2010-04-18 13:21:09 +00:00
Daniel James
2f5c2be9d2 Merge iostreams link fixes.
[SVN r61349]
2010-04-18 10:02:19 +00:00
Daniel James
9af63fdfae Update link to range reference documentation.
[SVN r61234]
2010-04-12 22:38:29 +00:00
Daniel James
55f60728fa Try to avoid a warning.
[SVN r61208]
2010-04-11 20:30:22 +00:00
Daniel James
a2ef4bb657 Try to avoid a warning on Visual C++ with stlport. Refs #4074
It would be better to use more consistent types.

[SVN r61117]
2010-04-06 22:17:36 +00:00
Daniel James
5dd20fadc2 Small iostreams merge.
- Minor test fix for some compilers.
 - Inspect fix.


[SVN r61059]
2010-04-05 07:31:41 +00:00
Daniel James
1b96b8e33f Fix some inspect errors.
[SVN r61057]
2010-04-05 07:24:27 +00:00
Daniel James
1fec8e513a Explicitly qualify call to equal for compilers which find it ambiguous.
[SVN r60984]
2010-03-31 21:42:32 +00:00
Daniel James
40ecdc29e0 Merge iostreams.
- Fix write_device_impl<ostream_tag>. Fixes #3839
 - Fix error checks after calling SetFilePointer. Fixes #3953
 - Gzip filter shouldn't require its source to be peekable. Fixes #3723.
 - In `position_to_offset`, only cast to `stream_offset` after calculating
   `_Myoff`. Fixes #3969.
 - ptrdiff_t is in std. Fixes #2505.



[SVN r60666]
2010-03-17 00:23:32 +00:00
Daniel James
5177aa8a83 ptrdiff_t is in std. Refs #2505.
[SVN r60582]
2010-03-14 18:04:30 +00:00
Daniel James
317f6f07ea In position_to_offset, only cast to stream_offset after calculating _Myoff. Refs #3969.
Thanks to Garth Sylvester-Bradley.

[SVN r60581]
2010-03-14 18:00:45 +00:00
Daniel James
5c0f4cc2f5 Gzip filter shouldn't require its source to be peekable. Refs #3723.
In a recent version, the gzip filter stopped working for array sources,
this is because it started to require them to be peekable, which they
aren't and can't be because the peek interface modifies the source,
which for an array source is immutable.

Looking at the implementation, gzip decompressor has an internal class
to emulate a peekable source, which calls the putback member on the
original source if it runs out of space (requiring the source to be
peekable). It shouldn't really need to do that so I changed it to throw
an exception instead.

If it does need to do that, we could change it to store the character
that was put back at the beginning of the string instead.

[SVN r60415]
2010-03-10 07:29:44 +00:00
Daniel James
67e832cb3b Fix error checks after calling SetFilePointer. Refs #3953
Thanks to Eg. Especially for writing a test.

[SVN r60281]
2010-03-07 09:34:45 +00:00
Daniel James
b429d69932 Fix write_device_impl<ostream_tag>
And enchance the newline tests so that they test it.
Refs #3839

[SVN r60228]
2010-03-06 15:17:38 +00:00
Daniel James
69a1e331b9 Merge some fixes from trunk:
- Missing newline in an iostreams header.
 - Link fixes for iostream documentation.
 - Ignore a doxygen tag in boostbook.


[SVN r59258]
2010-01-24 20:43:34 +00:00
Daniel James
cac6c79e70 Fix inspect bookmark errors in iostreams.
[SVN r59168]
2010-01-20 21:20:04 +00:00
Daniel James
d01e641f43 Add missing newline.
[SVN r59167]
2010-01-20 21:19:42 +00:00
Daniel James
1bc6726f50 Merge iostreams. Release notes + more support for sun.
[SVN r58843]
2010-01-09 17:17:01 +00:00