Commit 165238d
committed
Include hittable.h from material.h
The prior version used a forward declaration of `hit_record`, which was
insufficient since hittable.h lines referenced members of `hit_record`,
and was unnecessary because hittable.h was included before material.h in
practice.
For this specific code, the inclusion is unnecessary, but is proper
form.
Resolves #16081 parent fe3385b commit 165238d
File tree
6 files changed
+8
-16
lines changed- books
- src
- InOneWeekend
- TheNextWeek
- TheRestOfYourLife
6 files changed
+8
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2791 | 2791 | | |
2792 | 2792 | | |
2793 | 2793 | | |
2794 | | - | |
| 2794 | + | |
2795 | 2795 | | |
2796 | 2796 | | |
2797 | 2797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
| 1349 | + | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | | - | |
1355 | | - | |
1356 | 1354 | | |
1357 | 1355 | | |
1358 | 1356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | | - | |
| 2289 | + | |
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
2293 | 2293 | | |
2294 | 2294 | | |
2295 | | - | |
2296 | | - | |
2297 | 2295 | | |
2298 | 2296 | | |
2299 | 2297 | | |
| |||
3329 | 3327 | | |
3330 | 3328 | | |
3331 | 3329 | | |
| 3330 | + | |
3332 | 3331 | | |
3333 | 3332 | | |
3334 | 3333 | | |
3335 | | - | |
3336 | | - | |
3337 | 3334 | | |
3338 | 3335 | | |
3339 | 3336 | | |
| |||
3370 | 3367 | | |
3371 | 3368 | | |
3372 | 3369 | | |
| 3370 | + | |
3373 | 3371 | | |
3374 | 3372 | | |
3375 | 3373 | | |
3376 | 3374 | | |
3377 | 3375 | | |
3378 | 3376 | | |
3379 | 3377 | | |
3380 | | - | |
3381 | | - | |
3382 | 3378 | | |
3383 | 3379 | | |
3384 | 3380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
0 commit comments