You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
Warning ... should be initialized in the member initialization list [-Weffc++]
Change constructor from Default::Default(){ stateConvVectorPosition = 0 }
to
Default::Default():stateConvVector(0) {}
for all used variables.
see "Effective C++" Item 4: Make sure that objects are initialized before they’re used.
The text was updated successfully, but these errors were encountered:
rherrmannr
changed the title
[-Weffc++] Effective C++ comliant code - use initialisation list instead of assignments within the constructor
Effective C++ comliant code - use initialisation list instead of assignments within the constructor
Sep 5, 2017
Fix compiler warning:
Warning ... should be initialized in the member initialization list [-Weffc++]
Change constructor from
Default::Default(){ stateConvVectorPosition = 0 }
to
Default::Default():stateConvVector(0) {}
for all used variables.
see "Effective C++"
Item 4: Make sure that objects are initialized before they’re used.
The text was updated successfully, but these errors were encountered: