From 0531e81ee1296997ffc69c8719d3236caafa9a09 Mon Sep 17 00:00:00 2001 From: Gres Date: Mon, 27 Feb 2017 20:28:48 +0300 Subject: [PATCH] Fixed singleton. --- cheatsheet.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheet.adoc b/cheatsheet.adoc index ba328c9..e1798a2 100644 --- a/cheatsheet.adoc +++ b/cheatsheet.adoc @@ -178,7 +178,6 @@ a| allow only one instance ``` struct Earth { - Earth () = delete; static Earth& instance () { static Earth earth; return earth; @@ -187,6 +186,7 @@ struct Earth { return radius; } private: + Earth (); int radius; } ```