Alexander Grund
|
5bcafbcc3d
|
Don't use reinterpret_cast
This is a strict-aliasing violation and hence UB
|
2020-01-08 16:55:50 +01:00 |
|
Alexander Grund
|
983acd5dc0
|
Document utf8_codecvt
|
2020-01-08 16:55:30 +01:00 |
|
Alexander Grund
|
999893c4e6
|
Remove unused u2w_tests array from test
|
2020-01-08 10:25:49 +01:00 |
|
Alexander Grund
|
7854435d8e
|
Switch pointer alignment to left
Consistency with rest of boost
|
2020-01-07 21:27:26 +01:00 |
|
Alexander Grund
|
bb2487351f
|
Use west-const
Almost all of boost does, so be nice stay consistent
|
2020-01-07 21:26:12 +01:00 |
|
Alexander Grund
|
b086175a4e
|
Fix include guards
|
2020-01-07 21:07:35 +01:00 |
|
Alexander Grund
|
b19c25376c
|
Rename namespace details -> detail
As per common convention
|
2020-01-07 21:05:18 +01:00 |
|
Alexander Grund
|
1168f607bb
|
Remove vim format tags
|
2020-01-07 19:41:33 +01:00 |
|
Alexander Grund
|
afe7304f29
|
Use define instead of commandline switch for test_system
|
2020-01-07 19:41:33 +01:00 |
|
Alexander Grund
|
40d5757920
|
Fix typo in docu
|
2020-01-07 16:51:08 +01:00 |
|
Alexander Grund
|
17fbd803f4
|
Merge pull request #58 from Flamefire/static_analyzer
Fix issues found by static analyzer
|
2020-01-06 10:57:33 +01:00 |
|
Alexander Grund
|
ca2091a884
|
Add BOOST_NOWIDE_FALLTHROUGH for Boost < 1.64
|
2020-01-06 09:42:18 +01:00 |
|
Alexander Grund
|
920e60c6da
|
Remove unused vectors in test_codecvt
|
2020-01-06 09:42:18 +01:00 |
|
Alexander Grund
|
74586edc53
|
Test and fix compile failure in is_open function
|
2020-01-06 09:42:18 +01:00 |
|
Alexander Grund
|
c8ad51877e
|
Make class really uncopyable
|
2020-01-06 09:18:47 +01:00 |
|
Alexander Grund
|
3f59d86076
|
Merge pull request #57 from Flamefire/docu
Update docu
|
2020-01-05 20:17:00 +01:00 |
|
Flamefire
|
c4b6ef0c6a
|
Update docu with suggestions from review
|
2020-01-05 17:08:52 +01:00 |
|
Flamefire
|
c780513153
|
Fix docu (typos & outdated)
|
2020-01-05 17:01:28 +01:00 |
|
Alexander Grund
|
fc700c30bb
|
Merge pull request #56 from Flamefire/tie_streams
Fix potentially untied streams
|
2020-01-05 16:45:17 +01:00 |
|
Flamefire
|
7ab8bb4cba
|
Compare != FALSE instead of == TRUE
The return value of the WinAPI is defined to be non-zero, but not required to be 1/TRUE
|
2020-01-05 16:29:18 +01:00 |
|
Flamefire
|
4955f32899
|
Fix potentially untied streams
When using LTCG/LTO the unused initializer might be optimized out.
Move the operation to the ctor
|
2020-01-05 16:25:40 +01:00 |
|
Alexander Grund
|
be200b2b09
|
Merge pull request #55 from Flamefire/tests
Improve tests
|
2020-01-05 12:38:23 +01:00 |
|
Alexander Grund
|
1eefeed7eb
|
Supress long-long warning
|
2020-01-02 21:04:35 +01:00 |
|
Flamefire
|
df923c7bc0
|
Only flush after actually writing something
fflush on a file where the most recent operation was NOT write is undefined behavior
|
2020-01-02 19:15:28 +01:00 |
|
Alexander Grund
|
f47a70130f
|
Enable correct warnings for CMake tests
|
2020-01-02 18:47:57 +01:00 |
|
Alexander Grund
|
956ecbf6d1
|
Use pragma instead of _CRT_SECURE_NO_WARNINGS
Allows to detect missing suppressions in headers
|
2020-01-02 18:47:57 +01:00 |
|
Alexander Grund
|
e972bea06d
|
Make stackstring return NULL when no string was converted (NULL passed or default constructed)
This is important for e.g. freopen where an empty string and a NULL pointer have different meanings
Rename c_str to get to avoid confusion
|
2020-01-02 18:47:56 +01:00 |
|
Alexander Grund
|
7e4e8c2194
|
Split tests for convert and stackstring
|
2020-01-02 18:47:55 +01:00 |
|
Alexander Grund
|
831f4461fd
|
Improve stdio test
Add comment for every subtest
Ensure completeness
|
2020-01-02 18:47:54 +01:00 |
|
Alexander Grund
|
393b8d510a
|
Add test for filebuf under non-windows
|
2020-01-02 18:47:53 +01:00 |
|
Alexander Grund
|
5813bfacec
|
Add BOOST_NOWIDE_USE_FSTREAM_REPLACEMENTS macro
Allows to test the fstream classes on e.g. Linux
They were designed to work cross-platform
|
2020-01-02 18:47:53 +01:00 |
|
Alexander Grund
|
e4a45f3ce6
|
Delegate seekpos to seekoff
Calling fsetpos requires correct argument of type off_t which is not
available. For simplicity assume fseek acts the same.
|
2020-01-02 18:47:52 +01:00 |
|
Alexander Grund
|
97dba5bc1e
|
Rework filebuf
Check each function against C++ standard and remove redundant operations, especially fflush calls.
|
2020-01-02 18:47:51 +01:00 |
|
Alexander Grund
|
8a8f23a444
|
Disallow converting locales
No conversion is done in current implementation so avoid unexpected behavior
|
2020-01-02 18:47:50 +01:00 |
|
Alexander Grund
|
90ce184ce8
|
Call close on destruction of filebuf
Mandated by standard
Remove superflous braces and dtor from fstreams
|
2020-01-02 18:47:49 +01:00 |
|
Alexander Grund
|
0a0a927f35
|
Remove usage of pointer to filebuf
Similar to other stdlibs
|
2020-01-02 18:47:49 +01:00 |
|
Alexander Grund
|
c50504e388
|
Rewrite test_fstream
Small functions testing subsets
Descriptive comments
Add some missing tests
|
2020-01-02 18:47:48 +01:00 |
|
Alexander Grund
|
10d43c46cd
|
Create test_failed function for easier debugging
Can set breakpoints inside
|
2020-01-02 18:47:47 +01:00 |
|
Alexander Grund
|
1bff7b670c
|
Remove usage of Boost.LightweightTest
Tests assume TEST terminates execution on failure which is not how BLWT behaves
|
2020-01-02 18:47:46 +01:00 |
|
Alexander Grund
|
5c684c0fe6
|
Combine cenv and system to cstdlib
Follows the C++ headers
|
2020-01-02 18:47:45 +01:00 |
|
Alexander Grund
|
0b152a5ce6
|
Make sure config.hpp is included first
|
2020-01-02 18:47:45 +01:00 |
|
Alexander Grund
|
695fb73512
|
Make instances of stackstring const where possible
|
2020-01-02 18:47:44 +01:00 |
|
Alexander Grund
|
42d11003a9
|
filebuf::open should return NULL on already open file
|
2020-01-02 18:47:43 +01:00 |
|
Alexander Grund
|
17b677aeec
|
Fix wrong default args for fstream
|
2020-01-02 18:47:42 +01:00 |
|
Alexander Grund
|
042e5ee28c
|
Test Copy & Swap of stackstrings
|
2020-01-02 18:47:41 +01:00 |
|
Alexander Grund
|
e780cce5cb
|
Initialize buffer of stackstring and test it
|
2020-01-02 18:47:41 +01:00 |
|
Alexander Grund
|
16d98b0f15
|
Cleanup includes
|
2020-01-02 18:47:40 +01:00 |
|
Alexander Grund
|
558b32ad4d
|
Revert "Use -std=gnu++xx on Appveyor because of ::setenv etc"
This reverts commit ac279483a6.
|
2020-01-02 18:47:39 +01:00 |
|
Alexander Grund
|
dd2d60eda3
|
Add benchmark for fstream
|
2020-01-02 18:47:38 +01:00 |
|
Alexander Grund
|
73a2929339
|
Merge pull request #28 from Flamefire/reademe
Add readme
|
2019-12-30 13:07:40 +01:00 |
|