title: Is it possible to read a file at compile time?
body: <p>I am wondering if it is possible in C++11/14 to actually read files at compile time. For example the following code will only compile if it can successfully read the file.</p>
  
  <pre><code>constexpr std::string shader_source = load("~/foo.glsl");
  </code></pre>
  
  <p>Do you think this could be possible?</p>
  
  <p><em>I know that I could do this with some custom tool when building my application.</em></p>