Skip to content

Commit

Permalink
add algorithm include for std::clamp, remove superflous nodiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonStorm97 committed Oct 10, 2024
1 parent 6c15855 commit b73dca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/softrays/utility.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
Expand Down Expand Up @@ -221,7 +222,7 @@ constexpr inline double linear_to_gamma(double linear_component)
return 0;
}

[[nodiscard]] inline void StreamPPM(std::ostream& stream, int width, int height, const std::vector<std::uint8_t>& data)
inline void StreamPPM(std::ostream& stream, int width, int height, const std::vector<std::uint8_t>& data)
{
stream << "P3\n"
<< width << ' ' << height << "\n255\n";
Expand Down

0 comments on commit b73dca7

Please sign in to comment.