mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
Merge pull request #61 from xgdgsc/xgdgsc-patch-1
add if using single header comment to example
This commit is contained in:
commit
06eb97e5b9
@ -59,6 +59,7 @@ Moreover, in each case, you can provide either some string type for the file's p
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <mio/mmap.hpp>
|
#include <mio/mmap.hpp>
|
||||||
|
// #include <mio/mio.hpp> if using single header
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
@ -78,6 +79,7 @@ for functions where character strings are expected (e.g. path parameters).
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
#include <mio/mmap.hpp>
|
#include <mio/mmap.hpp>
|
||||||
|
// #include <mio/mio.hpp> if using single header
|
||||||
#include <system_error> // for std::error_code
|
#include <system_error> // for std::error_code
|
||||||
#include <cstdio> // for std::printf
|
#include <cstdio> // for std::printf
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user