Skip to content

Commit 85a15f7

Browse files
authored
Merge pull request #873 from MattTree/dev-major
Signature mismatch: bvh_node constructor
2 parents 06bbfbe + f812270 commit 85a15f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Change Log -- Ray Tracing in One Weekend
3232
illustration of a spatial texture.
3333
- Change: Broad rewrite of time management for moving objects, primarily `camera` and
3434
`moving_sphere`, but also impacting the API for `hittable::bounding_box()` (#799)
35+
- Fix: Fixed `bvh_node` constructor definition signature (#872)
3536

3637
### The Rest of Your Life
3738

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@
943943
class bvh_node : public hittable {
944944
public:
945945
...
946-
bvh_node(std::vector<shared_ptr<hittable>>& src_objects, size_t start, size_t end) {
946+
bvh_node(const std::vector<shared_ptr<hittable>>& src_objects, size_t start, size_t end) {
947947
auto objects = src_objects; // Create a modifiable array of the source scene objects
948948

949949
int axis = random_int(0,2);

0 commit comments

Comments
 (0)