Skip to content

Change default template to allow more verbose writing #52

@SirLynix

Description

@SirLynix

Hello!

I noticed the following declaration

  template <typename I1 = int, typename I2 = int, typename I3 = int>
  class version {

which means to use something like uint32_t (in my case) you have to write semver::version<uint32_t, uint32_t, uint32_t>.

Wouldn't it be better to have

  template <typename I1 = int, typename I2 = I1, typename I3 = I1>
  class version {

to be able to specialize using only one type? semver::version<uint32_t>

Thanks!

Edit: Also, I can't find a way to build a semver::version with already known version in the new API?

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