We did not make the constructor that takes an initializer_list explicit (§ 7.5.4, p. 296). Discuss the pros and cons of this design choice.
§ 7.5.4 (p. 296)
Exercise 7.47
Explain whether the Sales_data constructor that takes a string should be explicit. What are the benefits of making the constructor explicit? What are the drawbacks?
Exercise 7.48
Assuming the Sales_data constructors are not explicit, what operations happen during the following definitions
string null_isbn("9-999-99999-9");Sales_data item1(null_isbn);Sales_data item2("9-999-99999-9");What happens if the Sales_data constructors are explicit?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.