Project

General

Profile

Actions

Task #2095

closed

Deprecate ndn::ptr_lib and ndn::func_lib

Added by Junxiao Shi over 9 years ago. Updated over 9 years ago.

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

100%

Estimated time:
0.20 h

Description

Deprecate ndn::ptr_lib and ndn::func_lib namespace aliases.


Related issues 1 (0 open1 closed)

Blocks ndn-cxx - Task #2110: Delete deprecated ndn::ptr_lib and ndn::func_libClosedSpyros Mastorakis

Actions
Actions #1

Updated by Junxiao Shi over 9 years ago

20141029 conference call approves this Task.

Question:

ndn::shared_ptr, ndn::function, etc are aliases of std:: counterparts.
Is this an implementation detail, or is this part of public API?

In case the answer to previous question is "part of public API":
Should we recommend user to use ndn:: or std::, if the application itself isn't in namespace ndn?

Actions #2

Updated by Davide Pesavento over 9 years ago

Junxiao Shi wrote:

ndn::shared_ptr, ndn::function, etc are aliases of std:: counterparts.
Is this an implementation detail, or is this part of public API?

Implementation detail. Actually, the whole common.hpp header is an implementation detail. The only public part is (or should be) MAX_NDN_PACKET_SIZE, which should therefore be moved into some other header file.

Actions #3

Updated by Junxiao Shi over 9 years ago

From discussion in http://gerrit.named-data.net/1335:

Let's do the change ndn:: -> std:: later (whenever we touch the files).

This implies:

  • Aliases such as ndn::shared_ptr are implementation detail. They shouldn't be used outside of ndn-cxx.
  • Other projects should use identifiers in std, such as std::shared_ptr.
  • When an alias appears in ndn-cxx public API, caller should still use the equivalent std type.
Actions #4

Updated by Davide Pesavento over 9 years ago

Junxiao Shi wrote:

  • Aliases such as ndn::shared_ptr are implementation detail. They shouldn't be used outside of ndn-cxx.

To enforce this, we should split the private and public parts of common.hpp in separate files.

Actions #5

Updated by Junxiao Shi over 9 years ago

  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • Estimated time changed from 1.00 h to 0.20 h
Actions #6

Updated by Junxiao Shi over 9 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
  • Estimated time changed from 0.20 h to 0.20 h
Actions #7

Updated by Junxiao Shi over 9 years ago

  • Blocks Task #2110: Delete deprecated ndn::ptr_lib and ndn::func_lib added
Actions #8

Updated by Junxiao Shi over 9 years ago

  • Status changed from Code review to Closed
  • Estimated time changed from 0.20 h to 0.20 h
Actions

Also available in: Atom PDF