[SOLVED] Unable to build on linux/gcc after openimage refactor

After last OIIO refactor there’s an error when building on Linux with gcc.
https://developer.blender.org/rB6cf4861c3ac09fd65a765e8f8e3584713cc5303b

/build/blender-2.8-git/src/blender/intern/cycles/render/image.cpp:153:34: error: could not convert ‘ccl::ImageLoader::osl_filepath()’ from ‘OpenImageIO_v2_1::ustring’ to 
‘bool’
  153 |     if (img->loader->osl_filepath()) {
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                  |
      |                                  OpenImageIO_v2_1::ustring

There should be a static_assert here in stead of simple if. :confused:

Thanks, this should be fixed by:
https://developer.blender.org/rB75be60a

Works like a charm, thanks.