From 4f04dc8e2dcb48d524c141cb14ce05b655608454 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 3 Jun 2019 14:50:39 +0300 Subject: [PATCH] Fix formatted output operator detection in lexicalcast.h Since it was using a default-constructed value as part of the test expression, it would fail to detect the operator for classes that are not default-constructable. --- source/strings/lexicalcast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/strings/lexicalcast.h b/source/strings/lexicalcast.h index 6fe3cb3..22b45e8 100644 --- a/source/strings/lexicalcast.h +++ b/source/strings/lexicalcast.h @@ -97,7 +97,7 @@ struct CheckFormattedOutput: Sfinae { static std::ostream &s; template - static Yes f(int (*)[sizeof(s<(s))]); using Sfinae::f; }; -- 2.43.0