mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
66630b911b
|
@ -3814,7 +3814,7 @@ The common action gets tedious to write and may accidentally not be common.
|
||||||
|
|
||||||
**Reason**: If you need those constructors for a derived class, re-implementeing them is tedious and error prone.
|
**Reason**: If you need those constructors for a derived class, re-implementeing them is tedious and error prone.
|
||||||
|
|
||||||
**Example**: `std::vector` has a lot of tricky constructors, so it I want my own `vector`, I don't want to reimplement them:
|
**Example**: `std::vector` has a lot of tricky constructors, so if I want my own `vector`, I don't want to reimplement them:
|
||||||
|
|
||||||
class Rec {
|
class Rec {
|
||||||
// ... data and lots of nice constructors ...
|
// ... data and lots of nice constructors ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user