[Abysmal-commit] SF.net SVN: abysmal:[247] abysmal/trunk/src
Status: Pre-Alpha
Brought to you by:
jlanger85
|
From: <jla...@us...> - 2009-04-04 10:14:32
|
Revision: 247
http://abysmal.svn.sourceforge.net/abysmal/?rev=247&view=rev
Author: jlanger85
Date: 2009-04-04 10:14:30 +0000 (Sat, 04 Apr 2009)
Log Message:
-----------
using const references in the expression types wasn't a good idea, since
temporaries may have been passed in. These temporaries will be destroyed
while the expression type still holds the reference.
The new approach is to wrap the objects in boost::reference_wrappers
when they are passed to the operators. This case is safe since
the objects are still on the stack until the expression is evaluated.
Modified Paths:
--------------
abysmal/trunk/src/common/vector.h
abysmal/trunk/src/test/vec_perftest/vec_perftest.cpp
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|