Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule A12-8-4 and default constructing data members in a move constructor
#2
I should add some additional context. In a constructor, we want to construct a data member in the constructor member initializer list, and the move assign to it in the function body of the constructor. Is this in compliance with the rule or is it breaking the rule because the data member is not initialized using move semantics?
Reply


Messages In This Thread
RE: Rule A12-8-4 and default constructing data members in a move constructor - by Albin - 16-06-2022, 06:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)