Project

General

Profile

Feature #4468

Provide literal operators for ndn::time::duration types

Added by Davide Pesavento about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
01/18/2018
Due date:
% Done:

100%

Estimated time:

Description

They should be equivalent to the operators in std::literals::chrono_literals, except that the literal suffix identifiers must start with an underscore character, as required by the C++ standard:

[usrlit.suffix]

  1. Literal suffix identifiers that do not start with an underscore are reserved for future standardization.

Unfortunately we cannot use the standard chrono_literals directly because they would return an std::chrono::duration, which is incompatible with ndn::time::duration.

History

#1 Updated by Davide Pesavento about 1 year ago

  • Description updated (diff)

#2 Updated by Davide Pesavento about 1 year ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100

#3 Updated by Alex Afanasyev about 1 year ago

  • Status changed from Code review to Closed

Also available in: Atom PDF