Commit b3aaba40 authored by Yunus Sevinchan's avatar Yunus Sevinchan
Browse files

Use fmt::vformat to not have constexpr requirements on fstr

This fixes some downstream errors when using core/testtools, see:
model-building-utils!2
parent 38fdff89
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -52,10 +52,14 @@ struct LocationInfo {
        }

        using namespace fmt::literals;
        return fmt::format(fstr,
        return fmt::vformat(
            fstr,
            fmt::make_format_args(
                "file_path"_a=file_path.string(),
                "file_name"_a=file_path.filename().string(),
                           "line"_a=line);
                "line"_a=line
            )
        );
    }
};