Skip to content

Commit 452003c

Browse files
meshulanporcino-pixar
authored andcommitted
clang notices that constexpr can't be used on a mutating function (#1242)
* clang notices that constexpr can't be used on a mutating function * Update src/opentime/rationalTime.h Co-authored-by: Nick Porcino <[email protected]>
1 parent 6732294 commit 452003c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/opentime/rationalTime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class RationalTime
153153

154154
std::string to_time_string() const;
155155

156-
constexpr RationalTime const& operator+=(RationalTime other) noexcept
156+
RationalTime const& operator+=(RationalTime other) noexcept
157157
{
158158
if (_rate < other._rate)
159159
{
@@ -167,7 +167,7 @@ class RationalTime
167167
return *this;
168168
}
169169

170-
constexpr RationalTime const& operator-=(RationalTime other) noexcept
170+
RationalTime const& operator-=(RationalTime other) noexcept
171171
{
172172
if (_rate < other._rate)
173173
{

0 commit comments

Comments
 (0)