C++ Tips: Difference between revisions

Jump to navigation Jump to search
65 bytes added ,  7 October 2009
Line 5: Line 5:
* Use the SimGear primitive types for quaternions, vectors and matrices - the PLIB ones are deprecated (and PLIB will be removed at some point in the future). In some places it makes sense to use OSG types directly - that decision is left to the developer to decide which makes more sense.
* Use the SimGear primitive types for quaternions, vectors and matrices - the PLIB ones are deprecated (and PLIB will be removed at some point in the future). In some places it makes sense to use OSG types directly - that decision is left to the developer to decide which makes more sense.


* Use the boost helpers for string manipulation - they're more portable than C-library functions, especially on non-Unix systems.
* Use the [http://www.boost.org/doc/libs/1_40_0/doc/html/string_algo.html boost helpers] for string manipulation - they're more portable than C-library functions, especially on non-Unix systems.


== Formatting and Style ==
== Formatting and Style ==
580

edits

Navigation menu