Skip to content

Default constructor not supported #2

Description

@jaysterling

We are using this great little project with another templated library that, as part of its operation, must default construct an object before passing it as reference to a function where value is assigned. This fails though because it seems smart_enums can't be default constructed, causing compiler errors with GCC saying the constructor is deleted. Furthermore, the readme implies this is supported with the line near the end:

Animal invalid;

Default construction should be supported, and if possible, should cause the is_valid() method to return false until a valid value is assigned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions