Actions
Bug #3698
closedCompilation error on Ubuntu 14.04 with clang compiler
Start date:
08/04/2016
Due date:
% Done:
100%
Estimated time:
1.00 h
Description
Travis CI fails to compile code when clang compiler is used: https://travis-ci.org/named-data/ndn-cxx/jobs/149814142
../src/security/command-interest-validator.cpp:172:9: error: no matching function for call to 'abs'
if (time::abs(sigTime - receiveTime) > m_options.gracePeriod) {
^~~~~~~~~
/home/travis/build/named-data/ndn-cxx/build/../src/util/time.hpp:53:1: note: candidate template ignored: substitution failure [with Rep = long, Period = boost::ratio<1, 1000000000>]: non-type template argument is not a constant expression
abs(duration<Rep, Period> d)
^
1 error generated.
Actions