
24 Aug
2010
24 Aug
'10
5:42 p.m.
Can't you just work over the wstring example in proto and use this as a base for a intelligent string concatenation system ? basically, any termianl containing a string of any kind and operator+ or w/e build a proto tree that you affect to your string. This expression is crawled down at RT to gatehr the length, allcoate the buffer and do another traversal for copying each part where it does. Then use proto::lit() to build char[], char* or std::string into the proto AST.