Workaround to compile inline functions with MSVC v16 [Patch from Gisle Vanem].