Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jenn Nguyen <[email protected]>
  • Loading branch information
jennuine committed Feb 16, 2022
1 parent 2f63681 commit 2560b0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions include/ignition/math/Helpers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,18 @@ namespace ignition
}
}

/// \brief Append a number to a stream, specialized for int.
/// \param[out] _out Output stream.
/// \param[in] _number Number to append.
/// _precision Not used for int.
/// \deprecated Use appendToStream(std::ostream, int) instead.
template<>
inline void IGN_DEPRECATED(7) appendToStream(
std::ostream &_out, int _number, int)
{
_out << _number;
}

/// \brief Append a number to a stream. Makes sure "-0" is returned as "0".
/// \param[out] _out Output stream.
/// \param[in] _number Number to append.
Expand All @@ -497,9 +509,8 @@ namespace ignition
/// \brief Append a number to a stream, specialized for int.
/// \param[out] _out Output stream.
/// \param[in] _number Number to append.
// _precision Not used for int.
template<>
inline void appendToStream(std::ostream &_out, int _number, int)
inline void appendToStream(std::ostream &_out, int _number)
{
_out << _number;
}
Expand Down
4 changes: 2 additions & 2 deletions src/OrientedBox_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ TEST(OrientedBoxTest, ContainsOrientedRotation)
TEST(OrientedBoxTest, OperatorStreamOut)
{
OrientedBoxd b(Vector3d(0.1, 1.2, 2.3),
Pose3d(3.4, 4.5, 5.6, 0.0, -0.1, 0.2));
Pose3d(3.4, 4.5, 5.6, 0.1, -0.1, 0.2));
std::ostringstream stream;
stream << b;
EXPECT_EQ(stream.str(),
"Size[0.1 1.2 2.3] Pose[3.4 4.5 5.6 0 -0.1 0.2] Material[]");
"Size[0.1 1.2 2.3] Pose[3.4 4.5 5.6 0.1 -0.1 0.2] Material[]");
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit 2560b0b

Please sign in to comment.