mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:43:35 +08:00
Safer LazyConstructor - now requires to specify constructor parameter types manually
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user