From 8723ae1a33f806941552c254914fdce038a98897 Mon Sep 17 00:00:00 2001 From: Kevin Saul Date: Thu, 30 Dec 2021 17:51:08 +1300 Subject: [PATCH] Fix operator<< compiler error when c++20 enabled --- include/uuid.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/uuid.h b/include/uuid.h index 9634d9e..b1563b0 100644 --- a/include/uuid.h +++ b/include/uuid.h @@ -550,13 +550,6 @@ namespace uuids return lhs.data < rhs.data; } - template - std::basic_ostream & operator<<(std::basic_ostream &s, uuid const & id) - { - s << to_string(id); - return s; - } - template, class Allocator = std::allocator> @@ -578,6 +571,13 @@ namespace uuids return uustr; } + template + std::basic_ostream& operator<<(std::basic_ostream& s, uuid const& id) + { + s << to_string(id); + return s; + } + inline void swap(uuids::uuid & lhs, uuids::uuid & rhs) noexcept { lhs.swap(rhs);