Safer LazyConstructor - now requires to specify constructor parameter types manually

This commit is contained in:
Pavel Kirienko
2014-03-08 21:50:28 +04:00
parent b6dd1e3a14
commit 5a92b58e3e
2 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ TEST(LazyConstructor, Basic)
*/
a.destroy(); // no-op
a.construct();
b.construct("Hello world");
b.construct<const char*>("Hello world");
ASSERT_TRUE(a);
ASSERT_TRUE(b.isConstructed());