From f588d74140b2a86026929aa401c9852ec215d4af Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 5 Jun 2022 12:33:36 -0400 Subject: Add integer types to Pipeline::operator<< --- include/qpdf/Pipeline.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/qpdf/Pipeline.hh b/include/qpdf/Pipeline.hh index c3eb787e..0e0fb844 100644 --- a/include/qpdf/Pipeline.hh +++ b/include/qpdf/Pipeline.hh @@ -86,6 +86,24 @@ class QPDF_DLL_CLASS Pipeline Pipeline& operator<<(char const* cstr); QPDF_DLL Pipeline& operator<<(std::string const&); + // Calls QUtil::int_to_string + QPDF_DLL + Pipeline& operator<<(short); + QPDF_DLL + Pipeline& operator<<(int); + QPDF_DLL + Pipeline& operator<<(long); + QPDF_DLL + Pipeline& operator<<(long long); + // Calls QUtil::uint_to_string + QPDF_DLL + Pipeline& operator<<(unsigned short); + QPDF_DLL + Pipeline& operator<<(unsigned int); + QPDF_DLL + Pipeline& operator<<(unsigned long); + QPDF_DLL + Pipeline& operator<<(unsigned long long); // Overloaded write to reduce casting QPDF_DLL -- cgit v1.2.3-70-g09d2