I found this regarding how the C preprocessor should handle string literal concatenation (step 6). However, I can not find anything about how this is handled in C ++ (if using C ++ preprocessor is the C ?).
I ask that I have the following:
const char * Foo::encoding = "\0" "1234567890\0abcdefg";
where encodingis the static member of the class Foo. Without concatenation accessibility, I would not be able to write a sequence of characters like this.
const char * Foo::encoding = "\01234567890\0abcdefg";
Something completely different due to interpretation \012.
I don't have access to multiple platforms, and I'm curious how confident I am that the above is always handled correctly - i.e. i always get{ 0, '1', '2', '3', ... }
ezpz source
share