朝花夕拾
Archive
Categories
Pages
Tags
C++成员初始化顺序
22 November 2013
C++构造函数的初始化顺序不是按照初始化列表的顺序执行的,而是按照成员定义的顺序初始化的。
使用explicit来抑制构造函数定义的隐式转换
cpp
4
cpp
4
constructor
1
initialize
1
order
1
← Previous
Archive
Next →
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus