14 Jan
2016
14 Jan
'16
6:35 p.m.
On 14 January 2016 at 12:09, Agustín K-ballo Bergé
"The same thing" than what? It does the exact some thing the macro in this context would do:
#define STRING_VIEW(str) { str, sizeof(str)-1 }
Good point. The question is: what should it do? There are three interpretations: C-string literal ('\0'-terminated array that may have embedded '\0' bytes) array (no sentinel terminates the array) C-string (terminate the string at the first '\0' encountered) I suppose the one that makes the most sense is C-string literal (which is what the macro and your code does). Doesn't Boost.Range have to deal with this also? -- Nevin ":-)" Liber mailto:nevin@eviloverlord.com +1-847-691-1404