add to c++ style docs note about const& convention
This commit is contained in:
parent
232256e136
commit
6462af3a02
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ If you see bits of code around that do not follow these please don't hesitate to
|
|||
|
||||
(int)value; // no
|
||||
|
||||
#### Use const keyword after the type
|
||||
|
||||
std::string const& variable_name // preferred, for consistency
|
||||
|
||||
std::string const& variable_name // no
|
||||
|
||||
#### Shared pointers should be created with [boost::make_shared](http://www.boost.org/doc/libs/1_47_0/libs/smart_ptr/make_shared.html) where possible
|
||||
|
||||
#### Function definitions should not be separated from their arguments:
|
||||
|
|
Loading…
Reference in a new issue