[Debian-med-packaging] Bug#813280: libcereal: FTBFS: call of overloaded 'loadValue(long unsigned int&)' is ambiguous

Aaron M. Ucko amu at alum.mit.edu
Sun Jan 31 05:25:33 UTC 2016


Source: libcereal
Version: 1.1.2-1
Severity: important
Justification: fails to build from source

The i386, mips, mipsel, and x32 builds of libcereal all failed:

  /«PKGBUILDDIR»/./include/cereal/archives/json.hpp:872:5: error: call of overloaded 'loadValue(long unsigned int&)' is ambiguous
       ar.loadValue( t );
       ^
  /«PKGBUILDDIR»/./include/cereal/archives/json.hpp:595:12: note: candidate: void cereal::JSONInputArchive::loadValue(T&) [with T = long unsigned int; typename cereal::traits::detail::EnableIfHelper<std::is_unsigned<_Tp>::value, (sizeof (T) < sizeof (long long unsigned int)), (! std::is_same<bool, T>::value)>::type <anonymous> = (cereal::traits::detail::type)0]
         void loadValue(T & val)
              ^
  /«PKGBUILDDIR»/./include/cereal/archives/json.hpp:653:7: note: candidate: typename std::enable_if<((std::is_same<T, long unsigned int>::value && (! std::is_same<T, unsigned int>::value)) && (! std::is_same<T, long long unsigned int>::value)), void>::type cereal::JSONInputArchive::loadValue(T&) [with T = long unsigned int; typename std::enable_if<((std::is_same<T, long unsigned int>::value && (! std::is_same<T, unsigned int>::value)) && (! std::is_same<T, long long unsigned int>::value)), void>::type = void]
         loadValue( T & t ){ loadLong(t); }
         ^

Please conditionalize one of the variants that is redundant on 32-bit
systems appropriately.

Thanks!



More information about the Debian-med-packaging mailing list