Project

General

Profile

Actions

Feature #4468

closed

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

Added by Davide Pesavento almost 7 years ago. Updated almost 7 years 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.

Actions #1

Updated by Davide Pesavento almost 7 years ago

  • Description updated (diff)
Actions #2

Updated by Davide Pesavento almost 7 years ago

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

Updated by Alex Afanasyev almost 7 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF