diff --git a/include/sdf/Param.hh b/include/sdf/Param.hh index 29c5b90e5..dea9aa07a 100644 --- a/include/sdf/Param.hh +++ b/include/sdf/Param.hh @@ -85,6 +85,11 @@ namespace sdf : val(_val), precision(_precision) {} }; + // Template deduction guide for ParamVariant + template + ParamStreamer(const ParamVariant &_val, int _precision) + -> ParamStreamer; + template std::ostream& operator<<(std::ostream &os, ParamStreamer s) { diff --git a/src/SDF.cc b/src/SDF.cc index 74cf4825d..9943b679d 100644 --- a/src/SDF.cc +++ b/src/SDF.cc @@ -126,7 +126,7 @@ std::string findFile(const std::string &_filename, bool _searchLocalPath, // Next check the versioned install path. path = sdf::filesystem::append(sdfSharePath(), - "sdformat" SDF_MAJOR_VERSION_STR, + "sdformat" + std::string(SDF_MAJOR_VERSION_STR), sdf::SDF::Version(), filename); if (sdf::filesystem::exists(path)) {