support file reading from string literal
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenVulkano
|
||||
if (!file.is_open())
|
||||
{
|
||||
if (emptyOnMissing) return {};
|
||||
if constexpr (std::is_same_v<std::remove_reference_t<std::remove_cv_t<T>>, std::filesystem::path>)
|
||||
if constexpr (std::is_same_v<std::decay_t<T>, std::filesystem::path>)
|
||||
{
|
||||
throw std::runtime_error("Failed to open file '" + filePath.string() + "'!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user