Skip to content

Use delegating constructors (C++11 feature) #1489

@dimitry-ishenko

Description

@dimitry-ishenko

solid_color already uses it. Following classes could benefit from it:

  • checker_texture
  • constant_medium
  • ray
  • lambertian
  • diffuse_light
  • isotropic

Constructors of the following classes can be merged:

  • sphere -- combine moving and static constructors
  • noise_texture -- default constructor results in uninitialized use of the scale data member; combine both constructors and provide default value for scale

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions