From fd04a5131987947c27621cbaca536825b5e7cf46 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 8 Sep 2020 00:28:56 -0400 Subject: [PATCH] Initializer list doesn't use template splatter --- _posts/2020-08-05-static-polymorphism.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/_posts/2020-08-05-static-polymorphism.md b/_posts/2020-08-05-static-polymorphism.md index 2d49080..54ee9cf 100644 --- a/_posts/2020-08-05-static-polymorphism.md +++ b/_posts/2020-08-05-static-polymorphism.md @@ -694,8 +694,6 @@ the struct, `Vec` can't forward args to this initializer method. That said, open question as to whether the move vs. construct-in-place/placement new matters given an optimizing compiler: https://stackoverflow.com/a/36919571 -Also: `std::initializer_list` (although Rust can get _very_ close with macros: `vec!`). - # CRTP Might not need to be an extensive section? CRTP lets bases reference children. Rust has no struct