Skip to content

Commit

Permalink
build: remove some constexpr's gcc 11 didn't like
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwa committed May 20, 2024
1 parent 7dcac92 commit a09ad46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/light/trace_embree.hh
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ public:
}
virtual ~raystream_embree_common_t() = default;

constexpr void resize(size_t size)
void resize(size_t size)
{
_rays.resize(size);
}

constexpr ray_io &getRay(size_t index) { return _rays[index]; }
constexpr const ray_io &getRay(size_t index) const { return _rays[index]; };
ray_io &getRay(size_t index) { return _rays[index]; }
const ray_io &getRay(size_t index) const { return _rays[index]; };

constexpr const size_t numPushedRays() const { return _rays.size(); }
const size_t numPushedRays() const { return _rays.size(); }

constexpr void clearPushedRays() { _rays.clear(); }
void clearPushedRays() { _rays.clear(); }

inline qvec3f getPushedRayColor(size_t j) const
{
Expand Down

0 comments on commit a09ad46

Please sign in to comment.