From a32289dc70584463489ec5b95bf5470ff00c3e25 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Wed, 19 Jun 2024 17:42:10 +0300 Subject: [PATCH] Fix incorrect operator<<() argument type that gives build error. --- include/toml11/fwd/comments_fwd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toml11/fwd/comments_fwd.hpp b/include/toml11/fwd/comments_fwd.hpp index cd5be7f3..cd5bf0f4 100644 --- a/include/toml11/fwd/comments_fwd.hpp +++ b/include/toml11/fwd/comments_fwd.hpp @@ -444,7 +444,7 @@ inline bool operator>=(const discard_comments&, const discard_comments&) noexcep inline void swap(const discard_comments&, const discard_comments&) noexcept {return;} -inline std::ostream& operator<<(std::ostream&& os, const discard_comments&) {return os;} +inline std::ostream& operator<<(std::ostream& os, const discard_comments&) {return os;} } // toml11 #endif // TOML11_COMMENTS_FWD_HPP