2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-22 03:22:32 +00:00
Commit Graph

158 Commits

Author SHA1 Message Date
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
Flamefire
e5795ac1bd Add readme 2019-12-30 13:01:14 +01:00
Flamefire
7ab4edb18e Remove usage of BOOST_WORKAROUND 2019-12-29 21:20:46 +01:00
Alexander Grund
a49eb68d65 Merge pull request #54 from Flamefire/docuInJamfile
Create documentation in jamfile
2019-12-29 17:46:54 +01:00
Flamefire
4177502c25 Add test for creating Boost docu 2019-12-29 17:43:02 +01:00
Flamefire
b1aa04fc0b Remove obsolete params from Doxyfile 2019-12-29 17:43:02 +01:00
Flamefire
f2ec713ad3 Remove generated docu 2019-12-29 15:09:52 +01:00
Flamefire
dffc65e93c Invoke doxygen directly from Jamfile 2019-12-29 15:09:51 +01:00
Flamefire
f74d4241e1 Add basic doc/Jamfile 2019-12-29 15:09:51 +01:00
Flamefire
02b5e632a8 Rename main.txt to main.md 2019-12-29 15:09:50 +01:00
Alexander Grund
0e3447fed3 Merge pull request #52 from Flamefire/style
Enforce uniform style
2019-12-29 15:08:22 +01:00
Alexander Grund
b977e3de04 Merge pull request #53 from Flamefire/install
Disable installation when used with boost superproject
2019-12-28 17:59:55 +01:00
Flamefire
b7d007bd09 Disable installation when used with boost superproject 2019-12-28 16:35:20 +01:00
Flamefire
0f3f4ea69c Add missing include 2019-12-28 16:02:31 +01:00
Flamefire
8687ed581a Add style checks to CI 2019-12-28 16:02:31 +01:00
Flamefire
87aeeff2c9 Change to doc dir before calling doxygen 2019-12-28 16:02:31 +01:00
Flamefire
3bd6eed183 Enforce uniform formatting via clang-format 2019-12-28 16:02:31 +01:00
Flamefire
2142deca46 Update Doxyfile 2019-12-28 16:02:31 +01:00
Alexander Grund
c3dd00723f Merge pull request #27 from Flamefire/cmake
Create proper CMake files
2019-12-27 18:05:58 +01:00
Flamefire
f0274b7179 Use hidden visibility 2019-12-27 14:26:31 +01:00
Flamefire
3bf16a5e59 Don't use DEFINE_SYMBOL
It is not set in the INTERFACE part
2019-12-27 14:26:31 +01:00
Flamefire
5ebf2cb2be Disable installation for superbuild
static_assert and smart_ptr are missing installation targets
2019-12-27 14:26:31 +01:00
Flamefire
27e04866be Install libc++-helpers for travis tests 2019-12-27 14:26:31 +01:00
Flamefire
b94e9b834e Add tests for Boost superproject build 2019-12-27 14:26:31 +01:00
Flamefire
d357f7108f Add CI for CMake project + consumer test 2019-12-27 14:26:31 +01:00
Flamefire
3d6c001fc4 Add proper CMake files 2019-12-27 14:26:31 +01:00
Flamefire
f95ef16706 Remove dependency on Boost.Locale
Copy utf.hpp from Boost.Locale
2019-12-27 14:26:31 +01:00
Flamefire
4110393815 Remove dependency on encoding_utf
Function utf_to_utf is no longer used
2019-12-25 15:32:08 +01:00
Flamefire
bf51a60bb9 Use boost/detail/workaround
Compatibility with Boost < 1.65
2019-12-20 20:34:47 +01:00
Alexander Grund
92f3e0c189 Merge pull request #51 from Flamefire/feature/travis_improvements
Reduce number of Linux jobs run on PRs
2019-12-19 09:22:58 +01:00