Skip to content

Commit

Permalink
Fix strings
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Aug 10, 2023
1 parent cc8a96a commit 119cabd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions include/sdf/Param.hh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ namespace sdf
: val(_val), precision(_precision) {}
};

// Template deduction guide for ParamVariant
template<typename ParamVariant>
ParamStreamer(const ParamVariant &_val, int _precision)
-> ParamStreamer<ParamVariant>;

template<class T>
std::ostream& operator<<(std::ostream &os, ParamStreamer<T> s)
{
Expand Down
2 changes: 1 addition & 1 deletion src/SDF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 119cabd

Please sign in to comment.