Skip to content

Add std::chrono support to Timespan #2576

@Talkless

Description

@Talkless

Expected behavior

It would be usefull to have support for C+=11 std::chrono types

Foo::setTimeout(std::chrono::microseconds timeout) {
//...
    Poco::Timespan ts{timeout};
//...
}

//...

using namespace std::chrono_literals;
Foo f;
f.setTimeout(1s);

Actual behavior

Poco time-related classes does not accept std::chrono types

POCO version

1.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions