Project

General

Profile

Feature #3962

Backport ostream_joiner

Added by Davide Pesavento over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Backport std::experimental::ostream_joiner, including make_ostream_joiner, from the Library Fundamentals v2 TS. See http://en.cppreference.com/w/cpp/experimental/ostream_joiner for more details.

Our implementation should be added to util/backports.hpp, or to a separate header file included from there, inside namespace ndn. The standard library implementation should be preferred whenever available.


Related issues

Related to NFD - Feature #3076: C++14 supportClosedDavide Pesavento

Actions
#1

Updated by Davide Pesavento over 3 years ago

#2

Updated by Junxiao Shi over 3 years ago

nfdc::text::Separator can already provide this functionality.

#3

Updated by Davide Pesavento over 3 years ago

Junxiao Shi wrote:

nfdc::text::Separator can already provide this functionality.

Well, nfdc is not a library feature. Moreover, text::Separator API is very restrictive, as it only allows std::string as separator type. ostream_joiner is completely generic, and has a somewhat different, "iterator-like" API.

#4

Updated by Davide Pesavento over 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Davide Pesavento
  • Target version set to v0.6
#5

Updated by Davide Pesavento over 3 years ago

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

Updated by Davide Pesavento over 3 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF