
6 Dec
2010
6 Dec
'10
9:45 a.m.
On 05.12.2010 22:04, Laszlo Marak wrote:
Is there a possibility to generate a std::string from a FILE following some rules using template meta-programming (or possibly the preprocessor)? Sorry, absolutely not. Reading files is completely beyond the template system, and the preprocessor will interpret it as C++ code, so even if you could come up with amazingly clever macros to hide all the code (you can't), you still wouldn't have access to the contents of comments.
Sebastian