Skip to content

Add directive to force default constructors #366

@patnashev

Description

@patnashev

If constructors and assignment operator are defined as default:

GLM_FUNC_DECL tvec2() = default;
GLM_FUNC_DECL tvec2(tvec2<T, P> const & v) = default;
GLM_FUNC_DECL tvec2<T, P>& operator=(tvec2<T, P> const & v) = default;

then tvec2 can be used in unions. Implicitly-defined constructors provide no functionality but make the classes non-trivial.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions