Actions
Feature #2963
closedNDNLPv2: CachePolicy
Start date:
Due date:
% Done:
100%
Estimated time:
1.50 h
Description
Updated by Junxiao Shi over 9 years ago
- Blocked by Feature #2876: NDNLPv2: simple value type declaration added
Updated by Junxiao Shi over 9 years ago
This issue is a rework of part of #2876 due to CachePolicy design change.
TLV-TYPE code changes should be part of this issue.
Updated by Eric Newberry over 9 years ago
- Status changed from New to In Progress
Updated by Eric Newberry over 9 years ago
- Status changed from In Progress to Code review
Updated by Eric Newberry over 9 years ago
- Status changed from Code review to Closed
- % Done changed from 0 to 100
Updated by Junxiao Shi almost 9 years ago
can we add
CachePolicy(CachePolicyType policy)
constructor for implicit conversion? This way the code that uses policy would look much more concise
No, it's intentional that CachePolicy
is not convertible from CachePolicyType
.
A specific CachePolicyType
may define additional required fields.
For example, CachePolicyType::TIME_LIMIT
requires a duration
field.
Allowing CachePolicy
to be constructed from a CachePolicyType
would leave the CachePolicy
instance in an invalid state.
Actions