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.
  
      
      Updated by Junxiao Shi over 9 years ago
      
    
    - Tracker changed from Task to Bug
 - Status changed from New to In Progress
 - Priority changed from Normal to High
 - Estimated time set to 1.00 h
 
      
      Updated by Junxiao Shi over 9 years ago
      
    
    - Related to Feature #2376: CommandInterestValidator added
 
      
      Updated by Junxiao Shi about 9 years ago
      
    
    - Status changed from In Progress to Closed
 - % Done changed from 0 to 100
 
Actions