Currently MeshView uses a reference_wrapper to hold a reference to a Mesh. This, while correct, might lead to some issues when we want to create an empty view and fill it later on. It also creates a problem in which a MeshView will always be bound to a single Mesh, without the possibility for reassignment.
A fix for this would be to use an optional<reference_wrapper<Mesh>> instead. See include/graphics/gl/mesh.h.
Currently MeshView uses a
reference_wrapper
to hold a reference to a Mesh. This, while correct, might lead to some issues when we want to create an empty view and fill it later on. It also creates a problem in which a MeshView will always be bound to a single Mesh, without the possibility for reassignment.A fix for this would be to use an
optional<reference_wrapper<Mesh>>
instead. Seeinclude/graphics/gl/mesh.h
.