bc3404fcbea75b02531d4da2373ade66eb7c5985
The copy-and-swap idiom is certainly very cute, but often causes unnecessary copies. My commitfedafb9352did exactly that, unfortunately. Restore the exact same code for the copy-assignment operator as before commitfedafb935, and add a more efficient implementation for the move-assignment operator. As explained by Howard Hinnant in [1] and [2], if some particular piece of code really needs a strong exception safety guarantee, one can easily add a specific method for that; this is not a valid reason to make the code slower for all other places that have no use for such a guarantee! [1] http://www.slideshare.net/ripplelabs/howard-hinnant-accu2014 [2] https://stackoverflow.com/a/9322542/4756009
SimGear - Simulator Construction Tools ====================================== http://www.flightgear.org SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. SimGear is developed by the FlightGear project and also provides the base for the FlightGear Flight Simulator. Source code for SimGear is released under the GNU Library General Public License (LGPL) - see COPYING for license details. See INSTALL file for help on building SimGear.
Description
Languages
C++
85.5%
C
13.1%
CMake
1.4%