Quote:boost\bind.hpp
Note that directories in filenames in C and C++ are seperated with a slash, not with a backslash. Backslashes in #include filenames yield undefined behaviour:
Quote:2.9 Header names
If either of the characters ’ or \, or either of the character sequences /* or // appears in a q-char-sequence or a h-char-sequence, or the character " appears in a h-char-sequence, the behavior is undefined18
18->Thus, sequences of characters that resemble escape sequences cause undefined behavior.
For the rest of your code, read
this one.
edit: I realise they have updated it (above was from n3000, this is from n3090)
Quote:If The appearance of either of the characters ’ or \, or of either of the character sequences /* or // appears in a q-char-sequence or a an h-char-sequence is conditionally supported with implementation-defined semantics,
or as is the appearance of the character " appears in a in an h-char-sequence , the behavior is undefined.18
The footnote says that depending on your compiler, this might be an error, an escape sequence, or something completely different (e.g. a windows path name under MSVC). Still, I think implementation-defined is not much better than undefined for non-systems-programmers, so I'd highly discourage this and use the well-defined slash instead.