Utiliser l'héritage de constructeur sur Kenny #5

Closed
opened 2 years ago by francois.delobel · 0 comments
Collaborator
struct A {
    A(int){}
};

struct B : public A {
    using A::A;
};

int main() {
    B b(1);
}
``` struct A { A(int){} }; struct B : public A { using A::A; }; int main() { B b(1); } ```
alexis.drai referenced this issue from a commit 2 years ago
alexis.drai closed this issue 2 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: alexis.drai/cpp_stl#5
Loading…
There is no content yet.