Commit Graph

  • 5c237fbca3
    Further clean up all code, use the exception mechanism across the board, and make error codes only used internally, when asserting a problem, and not externally represented. Calling the operating system's API makes a lot more sense. Exceptions are definitely thrown for non-existent files. Formatting the source code makes it more readable. Remove the direct use of the c++ 2011 type trait, All switched to c++2020 concepts and type constraints. Update README.md Twilight-Dream-Of-Magic 2025-04-01 23:25:01 +08:00
  • e8c2433fe0
    Neat code: single_include/mio.hpp Twilight-Dream-Of-Magical 2025-03-31 11:20:11 +08:00
  • 0cbb19167d
    Merge 9d54db9c4477d8e9b2c8bf897e700236666cbe1c into 8b6b7d878c89e81614d05edca7936de41ccdd2da Oliver Schönrock 2025-01-14 16:49:59 -06:00
  • 9d54db9c44 casts to remove warnings in WIN32 mode Oliver Schonrock 2024-12-17 15:07:12 +00:00
  • 7a1d9bec47 remove recursive include Oliver Schonrock 2024-12-13 20:25:29 +00:00
  • 7fa954bdde silencing -Wconversion and -Wsign-conversion warnings Oliver Schonrock 2024-12-13 20:23:38 +00:00
  • 565badb03f silence cmakes 3.31's warning Oliver Schonrock 2024-12-13 19:56:48 +00:00
  • 1ccfb35fb7
    Merge 0b8e75d9951d7f3b422f30e97cd6cf727fdc979c into 8b6b7d878c89e81614d05edca7936de41ccdd2da Oliver Schönrock 2024-12-08 19:47:01 +00:00
  • 0b8e75d995 make compatible with FreeBSD Oliver Schonrock 2024-12-08 19:45:07 +00:00
  • 914796cfa2
    Merge d4af7d11bf389112ab4b149ddd2b2751feb969cb into 8b6b7d878c89e81614d05edca7936de41ccdd2da Pavel P 2024-02-11 19:37:49 +02:00
  • d4af7d11bf Improve support for 32-bit builds on Windows Pavel P 2024-02-11 19:36:33 +02:00
  • 2b977ec221
    Merge 29ff27b1c1d5338e7da04c6e9b87cd4c6941ba2f into 8b6b7d878c89e81614d05edca7936de41ccdd2da Caball009 2023-06-03 00:27:08 -07:00
  • 29ff27b1c1
    Merge branch 'mandreyel:master' into master Caball009 2023-05-25 22:07:07 +02:00
  • 6a88a8148f
    Merge 3f894f00deae7a312729064db92e699510ca368d into 8b6b7d878c89e81614d05edca7936de41ccdd2da KOLANICH 2023-03-19 13:20:06 +09:00
  • a585b42450
    Merge d37d75dfeb7d5aeedf8ba781c248e27d14c0b450 into 8b6b7d878c89e81614d05edca7936de41ccdd2da Alex Biddulph 2023-03-08 22:11:58 +08:00
  • 6f6ca01e9d
    Merge 3606e7f97077340811aa1fc5df5cf8105462de84 into 8b6b7d878c89e81614d05edca7936de41ccdd2da captainurist 2023-03-08 21:45:07 +08:00
  • 3606e7f970 Add basic CI captainurist 2023-03-08 20:50:20 +08:00
  • 5d29ba05de
    Merge e16e1ab048fc180d2e6d4141486d3e2304cd2961 into 8b6b7d878c89e81614d05edca7936de41ccdd2da Pavel P 2023-03-03 10:43:08 +01:00
  • 85bfbccf0c
    Merge 22394fdd799756648f5769488e0ed55562e4312e into 8b6b7d878c89e81614d05edca7936de41ccdd2da Ivan Roberto de Oliveira 2023-03-03 10:40:40 +01:00
  • 8b6b7d878c
    Merge pull request #88 from pps83/master-fix-linker-s_2_ws master mandreyel 2023-03-03 10:37:00 +01:00
  • e16e1ab048 Define WIN32_LEAN_AND_MEAN, NOMINMAX before including windows.h Pavel P 2023-01-16 19:40:05 +03:00
  • 3f894f00de Improved packaging with CPack. KOLANICH 2023-01-23 14:14:09 +03:00
  • fd9dc4be35 Avoid multiply defined s_2_ws linker error Pavel P 2022-05-07 23:25:50 +03:00
  • 0abebeb2e2
    Undefining macro [max] from minwindef.h or stdlib.h Caball009 2022-11-08 06:33:30 +01:00
  • b42c03ce91
    Undefining macro [max] from minwindef.h or stdlib.h Caball009 2022-11-08 06:32:40 +01:00
  • d37d75dfeb
    Default initialise is_handle_internal_ Alex Biddulph 2022-08-19 10:11:39 +10:00
  • 72d56cee05
    Merge f05574baf6fe51e15f4ffa3f73dde49c31bf365a into 3f86a95c0784d73ce6815237ec33ed25f233b643 Twilight-Dream-Of-Magic 2022-08-13 05:28:50 +08:00
  • f05574baf6
    Updated UTF-8 conversion functions Twilight-Dream-Of-Magic 2022-08-13 05:28:15 +08:00
  • 6d020039c7
    Update mio.hpp Twilight-Dream-Of-Magic 2022-06-09 08:04:53 +08:00
  • 6a0e66b912
    Forward To C++ 2020 and Compatible C++ 2011 Twilight-Dream-Of-Magic 2022-06-09 07:56:31 +08:00
  • 22394fdd79 <vector> only needs to be included on Windows StrikerX3 2021-11-14 18:53:01 -03:00
  • 2bc1e80e46 Add support for copy-on-write mapping StrikerX3 2021-11-14 16:25:02 -03:00
  • 25bb22b555 Inline s_2_ws and include <vector> for it StrikerX3 2021-11-14 16:22:04 -03:00
  • 1147e38c4d Add missing inline to s_2_ws() Patrick O'Connell 2021-03-13 05:40:30 -08:00
  • 333d27ccab include missing vector in detail/mmap.ipp Karthik Nishanth 2021-02-07 22:16:16 +01:00
  • cb5404c027 Add inline specifier to s_2_ws() function Francis Hart 2021-02-07 15:19:06 +02:00
  • 3f86a95c07
    Merge pull request #68 from shivendra14/master mandreyel 2020-12-20 21:04:38 +01:00
  • 1dada12aba fixing overload shiagarw 2020-12-21 00:05:44 +05:30
  • 5bd9c3981f fixing typo shiagarw 2020-12-20 23:53:16 +05:30
  • 72aa534b81 Adding support of UTF8 file name processing in mio on windows shiagarw 2020-12-20 23:49:18 +05:30
  • 0a2b6cbd88
    Merge pull request #1 from mandreyel/master Shivendra Agarwal 2020-12-20 23:36:50 +05:30
  • 06eb97e5b9
    Merge pull request #61 from xgdgsc/xgdgsc-patch-1 mandreyel 2020-12-20 11:21:23 +01:00
  • 01e8f68952
    Merge pull request #63 from lkotsonis/fix/duplicate_target_name_in_cmake mandreyel 2020-12-20 11:13:29 +01:00
  • ce1bf19d40
    Adding support of UTF8 file name processing in mio on windows Shivendra Agarwal 2020-11-06 10:56:36 +05:30
  • f4fa4292eb fix duplicate target name in tests cmake Lefteris Kotsonis 2020-11-05 21:38:59 +02:00
  • e1d1866384
    add if using single header xgdgsc 2020-09-23 16:05:42 +08:00
  • 8c0d3c7c23
    Merge pull request #54 from petrmanek/master mandreyel 2019-12-27 18:31:40 +01:00
  • b296e2d40f Fix not releasing file handle on unsuccessful mapping on win32 mandreyel 2019-12-27 18:25:47 +01:00
  • 312f041121 Fixed typo in CMake config file. Petr Manek 2019-09-02 16:39:46 +02:00
  • 76251b8dde
    Merge pull request #50 from apmccartney/master mandreyel 2019-08-03 13:10:09 +02:00
  • 61567f4c57 Fixed CMake prefix generator bug ci-test Austin McCartney 2019-06-15 09:31:54 -06:00
  • 2bde42c3f2 Corrected CMakeLists.txt comment Austin McCartney 2019-06-15 09:31:12 -06:00
  • 62e6506330 Travis, CDash, and CMake 3.14 warnings Austin McCartney 2019-06-01 23:38:02 -06:00
  • b9737f60c3
    Merge pull request #49 from mandreyel/add-different-offset-tests mandreyel 2019-05-27 18:43:20 +02:00
  • f75520c719 Update single include header add-different-offset-tests mandreyel 2019-05-27 18:42:32 +02:00
  • 518b99b967 Fix offset method name to reflect actual intent mandreyel 2019-05-27 18:38:27 +02:00
  • dc885d0984 Add tests for mappings with different file offsets mandreyel 2019-05-27 18:10:43 +02:00
  • eb6f4068d3
    Merge pull request #47 from MambaWong/master mandreyel 2019-05-20 12:57:29 +01:00
  • c071714a70
    Fix memory mapped data offset MambaWong 2019-05-19 13:29:27 +08:00
  • e101ff3e89 Add compile test case for file descriptor constructor overload mandreyel 2019-05-11 16:38:39 +02:00
  • 9e2ef64ce6 Start using human-readable output for test file mandreyel 2019-05-08 08:50:09 +02:00
  • 88e0263b07 Fix memory mapped data offset mandreyel 2019-03-13 00:06:43 +01:00
  • 514837b21e Update test.cpp mandreyel 2019-03-13 00:06:06 +01:00
  • 18fbf199ec Fix minor errors in internal docs mandreyel 2019-03-12 22:58:51 +01:00
  • cafa31360f
    Merge pull request #40 from patrick--/single_header mandreyel 2019-02-09 16:32:14 +00:00
  • 3c655b70d9 Added single header file information to the README Patrick Servello 2019-02-09 10:28:01 -06:00
  • 647e977941 Initial single header support using amalgamate Patrick Servello 2019-02-05 22:00:37 -06:00
  • 3c658bf611
    Merge pull request #38 from amallia/patch-1 mandreyel 2019-02-02 21:53:04 +01:00
  • d25c02f09c
    Update mmap.ipp Antonio Mallia 2019-02-02 14:07:14 -05:00
  • d35a6db82a
    Update mmap.ipp Antonio Mallia 2019-01-30 18:13:19 -05:00
  • c7c7163a82 Fix file length calculation bug and half-missing comment mandreyel 2018-11-27 12:02:46 +01:00
  • e2fdbf6c35
    Merge pull request #34 from mandreyel/wchar-paths mandreyel 2018-11-13 15:24:08 +01:00
  • d4283a45ec Add Windows wide char path support wchar-paths mandreyel 2018-11-13 10:56:28 +01:00
  • d77add92da
    Merge pull request #32 from gmbeard/multi-target-windows-api mandreyel 2018-11-11 15:15:41 +01:00
  • 321bb4d89c
    Merge pull request #31 from easyaspi314/master mandreyel 2018-11-09 20:32:38 +01:00
  • 3c49b5c3fa Add line break and comment #endifs easyaspi314 (Devin) 2018-11-09 11:30:47 -05:00
  • ca14fbdff8 Update README.md to mention exceptions. easyaspi314 (Devin) 2018-11-09 11:28:52 -05:00
  • 6125094190 Merge branch 'master' into multi-target-windows-api Greg Beard 2018-11-09 11:59:41 +00:00
  • cc9e98f382 Conditionally enable the exception-throwing constructors easyaspi314 (Devin) 2018-11-08 23:32:14 -05:00
  • 45e5fcde97 Third follow up attempt to fix MSVC SFINAE build error mandreyel 2018-11-07 12:31:59 +01:00
  • bd14437895 Second follow up attempt to fix MSVC SFINAE build error mandreyel 2018-11-07 12:08:41 +01:00
  • 261acc6bc6 Follow up attempt to fix MSVC SFINAE build error mandreyel 2018-11-07 11:40:37 +01:00
  • 0da3002815 Fix missing error code in conditional_sync mandreyel 2018-11-07 11:08:34 +01:00
  • d33a0d567f Update docs to specify exception type mandreyel 2018-10-26 09:00:27 +02:00
  • a345b8b92d
    Merge pull request #29 from AlanAtWork/master mandreyel 2018-10-26 08:57:27 +02:00
  • 56aaf4e71f Throw std::system_error AlanAtWork 2018-10-25 10:40:22 -05:00
  • 2e048e5a25 Add entire file mapping overload to factory methods mandreyel 2018-10-25 09:22:46 +02:00
  • 99db68866c Update README.md and example.cpp mandreyel 2018-10-25 09:15:15 +02:00
  • 43ee283c01
    Merge pull request #28 from jdarpinian/default-args mandreyel 2018-10-25 08:59:39 +02:00
  • 0b3261071e Map entire file by default. James Darpinian 2018-10-24 03:09:54 -07:00
  • 039c4daa9e
    Merge pull request #27 from jdarpinian/msvc mandreyel 2018-10-24 17:45:46 +02:00
  • 99447c57cf MSVC can't handle constexpr INVALID_HANDLE_VALUE James Darpinian 2018-10-24 03:02:02 -07:00
  • 9bc0133764
    Merge pull request #25 from mandreyel/update-destructor-sync-defaults mandreyel 2018-10-24 10:09:49 +02:00
  • 1157537c98 Update docs, example.cpp and README.md mandreyel 2018-10-22 18:42:56 +02:00
  • 6570541b25 Update README.md and example.cpp destructor-sync-policy mandreyel 2018-10-22 15:24:30 +02:00
  • 50bfe8087a Create destructor sync policy mandreyel 2018-10-22 15:22:02 +02:00
  • 865d7f35ce Update basic_mmap destructor sync behavior mandreyel 2018-10-22 14:57:47 +02:00
  • 98d0d875b5 Refactor code to remove basic_mmap impl indirection mandreyel 2018-10-22 14:43:36 +02:00
  • 5ac44ecb00 Create invalid_handle value and update unmapped shared_mmap handle methods to return it mandreyel 2018-10-22 13:24:32 +02:00
  • 3338d0ddaf Merge branch 'master' into multi-target-windows-api Greg Beard 2018-10-22 11:09:10 +01:00