title: jpeg_write_view error in boost::gil
body: <p>I am now learning how to use generic image library in boost, and the following codes illustrate how to write some raw data to a jpeg file:</p>
  
  <pre><code>int main(void)
  {
      unsigned char *src_pixels;
      int src_row_bytes = 200;
      src_pixels = new unsigned char [200*500];
      for(int i=0; i&lt;500; i++)
      {
          for(int j=0; j&lt;200; j++)
              src_pixels[i*200+j]= j;
      }
      char *dst_pixels;
      dst_pixels = new char [200*500];
      for(int i=0; i&lt;500; i++)
      {
          for(int j=0; j&lt;200; j++)
              dst_pixels[i*200+j]= j;
      }
      gray8c_view_t my_view = interleaved_view(200,500,(const gray8_pixel_t*)src_pixels,src_row_bytes);
      gray8s_view_t your_view = interleaved_view(200,500,( gray8s_pixel_t*)dst_pixels,src_row_bytes); 
  
      jpeg_write_view("C:/file_1_copy.jpg", my_view);
      jpeg_write_view("C:/file_2_copy.jpg", your_view);
  
       delete []src_pixels;
       delete []dst_pixels;
  
      return 0;
  }
  </code></pre>
  
  <p>However, it seems   <code>jpeg_write_view("C:/file_2_copy.jpg", your_view);</code> cannot be compiled, and the following error messages are given:</p>
  
  <pre><code>Error   2   error C2338: jpeg_write_support&lt;View&gt;::is_supported
  </code></pre>
  
  <p>I do not how I could make it compile. Any suggestion will be appreciated. </p>
  
  <p>`</p>