Does C++20 mandate source code being stored in files?
问题 A slightly strange question, however, if I remember correctly, C++ source code doesn't require a file system to store its files. Having a compiler that scans handwritten papers via a camera would be a conforming implementation. Although practically not making that much sense. However C++20 now adds source location with file_name. Does this now imply that source code should always be stored in a file? 回答1: No, source code doesn't have to come from a file (nor go to a file). You can compile