阅读背景:

通过值或引用传递枚举?

来源:互联网 

My general rule is to pass by value for primitive types and pass by reference for objects (obviously const'd if need be). However, I'm not sure what route to take with enumerated types. I'd assume that pass by value is preferred since they are seemingly small, but I'd like to hear others thoughts.My general rule is to pass by value for primiti




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: