Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

C++ Code Style Guide

6 bytes added, 09:29, 16 June 2015
no edit summary
# We do not use syntax allowed by C++11 standard
# We do not use conversion operators (int())
# We do not use polymorphic inheritance
# We do not use assembler inlines
# We do not use "friends"
# Use references to objects rather than pointers, even for smart pointers.
# Group related classes to a single namespace
# We do not welcome a polymorphic inheritance
# If possible, avoid manual memory management (use of "new" and "delete" operators)
# If possible, avoid low-level thread management API ("pthread_xxx"), better to use boost or QT wrappers over it.