[Nfd-dev] Question about std::chrono::duration conversion to/from time::duration
Alex Afanasyev
alexander.afanasyev at ucla.edu
Thu Nov 13 14:25:42 PST 2014
> On Nov 13, 2014, at 1:58 PM, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
>
> Dear folks
>
> Whether ndn::time is using boost::chrono or std::chrono shall be an implementation detail.
> I think we should provide implicit conversion operators between ndn::time::duration<Rep,Period> and std::chrono::duration<Rep,Period>, when Rep is the same and Period is equivalent.
Is there a way to do it without us creating our own class? I don’t seem to find a simple way for that. I really don’t want us to create duration class and implement everything that is implemented in std/boost::chrono
More information about the Nfd-dev
mailing list