Skip to content

Provide interoperability between std::chrono::duration and boost::units::quantity<time> #51

@jpo234

Description

@jpo234

The time dimension is special in C++, because there already is an implementation in the standard libraries: std::chrono::duration.
I think boost::units should recognize this and provide an easy way to convert between these two different implementations of what is basically the same thing.
Ideally one should be able to do:
quantity<time> q = 2h;
where 2h is a std::literals::chrono_literals::operator""h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions