forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Commitddc8bdf
committed
SFINAE for choosing 'write' overload
Aside from adding an additional clarification in the documentation forthe macro defining the size of a page, this change makes the user-facing'write' implementation use SFINAE to choose whether to deal with thebuffer provided as a buffer that doesn't need to be copied (derives fromBoost.Asio's const_buffer type) or whether it's something that needs tobe copied (in the case of any other range).In the future there should be other overloads which deal with explicitBoost.Range iterator ranges, and maybe specific types.1 parent37efecc commitddc8bdf
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 |
| |
39 | 44 |
| |
40 | 45 |
| |
| |||
211 | 216 |
| |
212 | 217 |
| |
213 | 218 |
| |
214 |
| - | |
| 219 | + | |
| 220 | + | |
215 | 221 |
| |
216 | 222 |
| |
217 | 223 |
| |
218 | 224 |
| |
219 | 225 |
| |
220 | 226 |
| |
221 |
| - | |
| 227 | + | |
| 228 | + | |
222 | 229 |
| |
223 | 230 |
| |
224 | 231 |
| |
|
0 commit comments
Comments
(0)