Feature #2963
closed
- Blocked by Feature #2876: NDNLPv2: simple value type declaration added
This issue is a rework of part of #2876 due to CachePolicy design change.
TLV-TYPE code changes should be part of this issue.
- Status changed from New to In Progress
- Status changed from In Progress to Code review
- Status changed from Code review to Closed
- % Done changed from 0 to 100
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.
Also available in: Atom
PDF