From fa3097e71f6635ad3f4e578e37970e1bbe02b3e8 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 9 Feb 2014 00:37:03 +0000 Subject: [PATCH] Add 'long long' support to UTF-8 stream class. --- src/native_text.cpp | 12 ++++++++++++ src/native_text.hpp | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/src/native_text.cpp b/src/native_text.cpp index 469f4e2..3e4ce87 100644 --- a/src/native_text.cpp +++ b/src/native_text.cpp @@ -307,6 +307,18 @@ namespace detail { return *this; } +#if !defined(BOOST_NO_LONG_LONG) + ostream& ostream::operator<<(long long x) { + base << x; + return *this; + } + + ostream& ostream::operator<<(unsigned long long x) { + base << x; + return *this; + } +#endif + ostream& ostream::operator<<(fs::path const& x) { base << path_to_stream(x); return *this; diff --git a/src/native_text.hpp b/src/native_text.hpp index 7c981cc..11b990d 100644 --- a/src/native_text.hpp +++ b/src/native_text.hpp @@ -105,6 +105,12 @@ namespace quickbook ostream& operator<<(unsigned int x); ostream& operator<<(long x); ostream& operator<<(unsigned long x); + +#if !defined(BOOST_NO_LONG_LONG) + ostream& operator<<(long long x); + ostream& operator<<(unsigned long long x); +#endif + ostream& operator<<(fs::path const&); // Modifiers