Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 390 Bytes

12.5.md

File metadata and controls

7 lines (6 loc) · 390 Bytes

Since we do not make the constructor explicit, the pros are

  • we can use = { /* ... */ } to initialize a StrBlob object,
  • we can use assignment to assign an initializer list to a StrBlob object,
  • we can pass an initializer list to functions who need a StrBlob parameter.

The cons are

  • we may overlook the implicit conversion made by compiler sometime, which may be bug prone.