Bug#840461: openfoam: FTBFS (32-bit): ambiguous overload for 'operator<<'

Anton Gladky gladk at debian.org
Tue Oct 11 18:33:04 UTC 2016


Hi Aaron,

thanks for the notice and the tip! OpenFOAM has just entered an
archive and I will try to fix FTBFSs on 32-bit platforms.

Regards

Anton


2016-10-11 20:25 GMT+02:00 Aaron M. Ucko <amu at alum.mit.edu>:
>   db/dictionary/functionEntries/codeStream/codeStream.C:200:44: error: ambiguous overload for 'operator<<' (operand types are 'Foam::Ostream' and 'off_t {aka long int}')
>
> The problem is that, on these architectures, off_t is formally long
> whereas int32_t (for which an operator<< variant exists) is formally
> int; although the types are de facto equivalent on these
> architectures, C++ insists on treating them as distinct.
>
> I would suggest adding explicit long and unsigned long variants on
> these architectures (but not 64-bit architectures, on which they'll
> duplicate the existing [u]int64_t variants.)



More information about the debian-science-maintainers mailing list