Project

General

Profile

Actions

Feature #3963

closed

Backport operator""s

Added by Davide Pesavento almost 8 years ago. Updated over 6 years ago.

Status:
Abandoned
Priority:
Low
Assignee:
-
Category:
Utils
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Backport std::literals::string_literals::operator""s from C++14. The (const char*, size_t) overload returning an std::string should be sufficient for our purposes. See http://en.cppreference.com/w/cpp/string/basic_string/operator%22%22s for more details.

Our implementation should be added to util/backports.hpp, inside namespace ndn. The standard library implementation should be preferred whenever available; the __cpp_lib_string_udls feature-testing macro should be used for detection at compile-time, as recommended by WG21's SD-6.


Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF