93 Commits

Author SHA1 Message Date
mandreyel
321bb4d89c
Merge pull request #31 from easyaspi314/master
Conditionally enable the exception-throwing constructors
2018-11-09 20:32:38 +01:00
easyaspi314 (Devin)
3c49b5c3fa Add line break and comment #endifs 2018-11-09 11:30:47 -05:00
easyaspi314 (Devin)
ca14fbdff8 Update README.md to mention exceptions. 2018-11-09 11:28:52 -05:00
easyaspi314 (Devin)
cc9e98f382 Conditionally enable the exception-throwing constructors
This allows MIO to be compiled with -fno-exceptions, as that is the
only place where MIO uses them.
2018-11-08 23:32:14 -05:00
mandreyel
45e5fcde97 Third follow up attempt to fix MSVC SFINAE build error 2018-11-07 12:32:08 +01:00
mandreyel
bd14437895 Second follow up attempt to fix MSVC SFINAE build error 2018-11-07 12:08:49 +01:00
mandreyel
261acc6bc6 Follow up attempt to fix MSVC SFINAE build error 2018-11-07 11:42:42 +01:00
mandreyel
0da3002815 Fix missing error code in conditional_sync 2018-11-07 11:08:34 +01:00
mandreyel
d33a0d567f Update docs to specify exception type 2018-10-26 09:02:12 +02:00
mandreyel
a345b8b92d
Merge pull request #29 from AlanAtWork/master
Throw std::system_error
2018-10-26 08:57:27 +02:00
AlanAtWork
56aaf4e71f Throw std::system_error 2018-10-25 10:47:05 -05:00
mandreyel
2e048e5a25 Add entire file mapping overload to factory methods 2018-10-25 09:22:46 +02:00
mandreyel
99db68866c Update README.md and example.cpp 2018-10-25 09:15:15 +02:00
mandreyel
43ee283c01
Merge pull request #28 from jdarpinian/default-args
Map entire file by default.
2018-10-25 08:59:39 +02:00
James Darpinian
0b3261071e Map entire file by default. 2018-10-24 23:19:58 -07:00
mandreyel
039c4daa9e
Merge pull request #27 from jdarpinian/msvc
MSVC can't handle constexpr INVALID_HANDLE_VALUE
2018-10-24 17:45:46 +02:00
James Darpinian
99447c57cf MSVC can't handle constexpr INVALID_HANDLE_VALUE
Causes error C2131: expression did not evaluate to a constant
note: failure was caused by unevaluable pointer value
2018-10-24 03:02:02 -07:00
mandreyel
9bc0133764
Merge pull request #25 from mandreyel/update-destructor-sync-defaults
Update destructor sync defaults
2018-10-24 10:09:49 +02:00
mandreyel
1157537c98 Update docs, example.cpp and README.md 2018-10-22 18:46:07 +02:00
mandreyel
865d7f35ce Update basic_mmap destructor sync behavior 2018-10-22 14:57:47 +02:00
mandreyel
98d0d875b5 Refactor code to remove basic_mmap impl indirection 2018-10-22 14:46:42 +02:00
mandreyel
5ac44ecb00 Create invalid_handle value and update unmapped shared_mmap handle methods to return it 2018-10-22 13:30:35 +02:00
mandreyel
2dbf5d3050
Merge pull request #24 from GxvgiuU/shared_mmap-constructor
Fix shared_mmap constructor method
2018-10-21 17:30:51 +02:00
pierce
78d60cc6d9 Fix shared_mmap constructor method 2018-10-21 14:25:30 +08:00
mandreyel
365a80c9ac Fix char* being an invalid path type 2018-10-18 19:30:41 +02:00
mandreyel
307db6a136
Merge pull request #18 from gmbeard/fix-missing-test-file
Fixes missing test file
2018-10-18 19:07:43 +02:00
Greg Beard
77125df199 Fixes missing test file
For an earlier PR (#16), I introduced a new test file for testing
unicode support on Windows. The project's `.gitignore` file excludes the
entire test directory, so it was missed out. Turns out that this test
file wasn't actually needed, but the CMake config still uses it. This
commit just changes this back to the original `test.cpp` file.
2018-10-18 17:09:19 +01:00
mandreyel
e0ae329583
Merge pull request #16 from gmbeard/windows-unicode-compilation-fix
Windows unicode compilation fix
2018-10-18 14:26:21 +02:00
Greg Beard
5655910e73 Removes superfluous compile flags 2018-10-18 13:17:47 +01:00
Greg Beard
0082811090 Changes Windows version to directly use CreateFileA
`CreateFile` is `#define`d as `CreateFileW` in unicode builds (when `/D
UNICODE` is defined). This is probably more likely to be a issue when
integrating into GUI projects.

This commit allows compilation to succeed when `UNICODE` has been
defined and adds a note to the README, explicitly stating that mio
doesn't support wide char string types as parameters.
2018-10-18 13:01:55 +01:00
mandreyel
e2be76afbe Fix unescaped code block in README.md 2018-10-18 09:10:13 +02:00
mandreyel
bf0dd0158e
Merge pull request #13 from apmccartney/master
Expanded CMake Support
2018-10-17 11:42:03 +02:00
Austin McCartney
684e6318c7 Addressed ambiguity in README 2018-10-16 22:36:35 -06:00
Austin McCartney
b7d1cb95e2 README extensions 2018-10-16 22:34:13 -06:00
Austin McCartney
af8471440d Formatting long lines of README 2018-10-16 22:19:22 -06:00
Austin McCartney
bb10efd67b Typo 2018-10-16 22:00:59 -06:00
Austin McCartney
05085ab7a0 First draft of README extensions 2018-10-16 21:58:24 -06:00
Austin McCartney
d5f411e304 Added missing CMake file and added exception to .gitignore 2018-10-16 17:31:36 -06:00
Austin McCartney
0bc5453bfd corrected minor typos in CMake comments 2018-10-13 09:38:00 -06:00
Austin McCartney
9721918446 expanded comments regarding 2018-10-13 09:32:42 -06:00
Austin McCartney
e738beff33 removed references to frozen 2018-10-13 09:18:06 -06:00
Austin McCartney
b35ef4725a Expanded CMake Support
This commit introduces several features for the CMake build system.

+ CTest integration
+ CDash integration
+ CPack integration
+ CMake find_package support

To accomodate post-installation consumption, the `include` preprocessor
statements in several library header files were updated to use paths
relative to a root include directory rather than paths relative to the
file itself.
2018-10-13 09:11:10 -06:00
mandreyel
dde5edb18a Fix erroneous comment in example code 2018-09-29 22:15:13 +02:00
mandreyel
f2cf5f3c91 Update readme and example with file existence precondition 2018-09-25 08:33:30 +02:00
mandreyel
a53f63b58b Update code style in README and test.cpp 2018-09-07 15:59:45 +02:00
mandreyel
11f22060b1
Merge pull request #10 from mandreyel/add-license-1
Create LICENSE
2018-08-15 15:56:39 +02:00
mandreyel
660f2657fb
Create LICENSE 2018-08-15 15:56:23 +02:00
mandreyel
571b003b8d
Merge pull request #9 from Wunkolo/feature/cmake
Add CMakeLists.txt
2018-07-28 11:03:47 +02:00
Wunkolo
b6517e711f Add BUILD_TESTS option, installation
Remove compiler flags/warnings, makefile verbosity and colors
2018-07-27 19:14:43 -07:00
Wunkolo
2db812da58 Update README with CMake info 2018-07-27 19:14:43 -07:00