• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nholthaus / units / 909
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: v3.x
DEFAULT BRANCH: master
Ran 24 Oct 2020 05:59PM UTC
Jobs 2
Files 1
Run time 30s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
909

push

travis-ci

web-flow
Swap pow()s (#261)

The pow() overload taking an unsigned second parameter was
declared/defined after it was used in the other pow() implementation.
This results in compilation errors [0]. Moving the unsigned overload
above the signed overload fixes the issue.

[0]:

    awang@rp units % cat test.cpp

    int main() {}
    awang@rp units % clang++ -I include/ -std=c++17 test.cpp
    In file included from test.cpp:1:
    In file included from include/units.h:50:
    In file included from include/units/acceleration.h:49:
    In file included from include/units/length.h:49:
    include/units/core.h:1710:64: error: call to function 'pow' that is neither visible in the template definition nor
          found by argument-dependent lookup
                    return y == 0 ? 1.0 : (y < 0 ? 1.0 / x * pow(x, y + 1) : x * pow(x, static_cast<unsigned lon...
                                                                                 ^
    include/units/core.h:1803:36: note: in instantiation of function template specialization
          'units::pow<double, long, 0>' requested here
                                            static_cast<CommonUnderlying>(pow(detail::PI_VAL, PiRatio::num / PiR...
                                                                          ^
    include/units/core.h:1894:17: note: in instantiation of function template specialization
          'units::convert<units::detail::PI, units::conversion_factor<std::__1::ratio<1, 1>, units::dimension_t<>,
          std::__1::ratio<0, 1>, std::__1::ratio<0, 1> >, double, double, 0>' requested here
                    return UnitTo(convert<typename UnitFrom::conversion_factor, typename UnitTo::conversion_factor,
                                  ^
    include/units/core.h:2440:18: note: in instantiation of function template specialization
          'units::convert<units::unit<units::conversion_factor<std::__1::ratio<1, 1>, units::dimension_t<>,
          std::__1::... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 909.1 (MATRIX_EVAL="CC=gcc && CXX=g++" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure]) 24 Oct 2020 05:59PM UTC 0
0.0
Travis Job 909.1
2 909.2 (MATRIX_EVAL="CC=clang && CXX=clang++") 24 Oct 2020 05:59PM UTC 0
0.0
Travis Job 909.2
Source Files on build 909
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #909
  • e91f4578 on github
  • Prev Build on v3.x (#906)
  • Next Build on v3.x (#912)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc