Eve-ning / vsrg

a c++ static library for vsrg
https://twitter.com/dev_evening
2 stars 0 forks source link

Feasibility of Const <Class> & on smaller classes #1

Open Eve-ning opened 5 years ago

Eve-ning commented 5 years ago

Will have to find out if this is even worth adding for certain classes. Will not enforce any standard on small classes such as double/int/char, however will enforce on any custom classes

Eve-ning commented 4 years ago

To simplify, const refs should always happen on non-primitive classes. If it's primitive, it can be both, however, I'm currently opting to make all of them just copy as to shorten code length.