C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fixing Inheritance of Constructors from Aggregate bases

From: Bjorn Reese <breese_at_[hidden]>
Date: Sun, 7 Apr 2024 10:38:13 +0200
Your proposal should discuss forwarding:

   template <typename T>
   struct Inherit : T {
       template <typename... Args>
       Inherit(Args&&... args) : T{ std::forward<Args>(args)... } {}
   };

Received on 2024-04-07 08:38:17