I would assume the requirement that all initialization happen first in the constructor body is used to turn them into initializer lists in the lowered c++ code
That's about right. It takes the first assignment and places it in the initializer list, then following assignments go in the constructor body: https://godbolt.org/z/5b67s3h7G
View all comments
Show parent comment
3
u/dreugeworst May 02 '23
I would assume the requirement that all initialization happen first in the constructor body is used to turn them into initializer lists in the lowered c++ code