As I just found out, C++11 allows you to initialize non-static data members. This comes in handy for defining default values for member variables, which can be overridden by specific constructors.
Check out https://blogs.oracle.com/pcarlini/entry/c_11_tidbits_non_static for more details.
No comments:
Post a Comment