diff --git a/src/OpenFOAM/primitives/bools/bool/bool.H b/src/OpenFOAM/primitives/bools/bool/bool.H index 2f575e717f..3ea1104b47 100644 --- a/src/OpenFOAM/primitives/bools/bool/bool.H +++ b/src/OpenFOAM/primitives/bools/bool/bool.H @@ -50,8 +50,14 @@ Ostream& operator<<(Ostream&, const bool); bool readBool(Istream&); -} // End namespace Foam +inline void writeEntry(Ostream& os, const bool value) +{ + os << value; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/ints/int32/int32.H b/src/OpenFOAM/primitives/ints/int32/int32.H index 2b92a7faba..5a65c3bac2 100644 --- a/src/OpenFOAM/primitives/ints/int32/int32.H +++ b/src/OpenFOAM/primitives/ints/int32/int32.H @@ -72,6 +72,11 @@ Ostream& operator<<(Ostream&, const int32_t); Ostream& operator<<(Ostream&, const long); #endif +inline void writeEntry(Ostream& os, const int32_t value) +{ + os << value; +} + //- Template specialization for pTraits template<> diff --git a/src/OpenFOAM/primitives/ints/int64/int64.H b/src/OpenFOAM/primitives/ints/int64/int64.H index 14613f0fb2..560a94b7dd 100644 --- a/src/OpenFOAM/primitives/ints/int64/int64.H +++ b/src/OpenFOAM/primitives/ints/int64/int64.H @@ -68,6 +68,12 @@ bool read(const char*, int64_t&); Istream& operator>>(Istream&, int64_t&); Ostream& operator<<(Ostream&, const int64_t); +inline void writeEntry(Ostream& os, const int64_t value) +{ + os << value; +} + + //- Template specialization for pTraits template<> class pTraits diff --git a/src/OpenFOAM/primitives/ints/label/label.H b/src/OpenFOAM/primitives/ints/label/label.H index 2b005f0887..739147e34a 100644 --- a/src/OpenFOAM/primitives/ints/label/label.H +++ b/src/OpenFOAM/primitives/ints/label/label.H @@ -66,11 +66,6 @@ inline label readLabel(Istream& is) return INT_SIZE(readInt,) (is); } -inline void writeEntry(Ostream& os, const label value) -{ - os << value; -} - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //