Project

General

Profile

Actions

Task #1591

closed

Replace usage boost::cref (boost::ref) to with cref (ref) and remove unnecessary usage of cref

Added by Alex Afanasyev over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
05/12/2014
Due date:
% Done:

100%

Estimated time:

Description

Since ndn-cxx library and NFD can (technically) be compiled in C++11 mode, usage of boost::cref would create unnecessary problems for such compilation.

This task is to import ndn::cref and ndn::ref into nfd namespace and replace all usage of boost::cref and boost::ref with just cref and ref.

In addition to that, make_shared<>... construction does not require use of cref, which incurs only additional unnecessary overhead. For the places we are using cref in make_shared, we should stop doing that. ndn::ref (or ref) is still necessary when we need to pass a reference, but I don't think we ever use it anywhere.

Actions

Also available in: Atom PDF