Fixed bug 2080889 by adding overload of const Clone function.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1101 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-09-17 02:19:01 +00:00
parent 3af86d72a1
commit db151ad7b9

View file

@ -728,6 +728,14 @@ namespace Loki
DestructiveCopy(const DestructiveCopy<P1>&)
{}
template <class P1>
static P Clone( const P1 & val )
{
P result(val);
const_cast< P1 & >( val ) = P1();
return result;
}
template <class P1>
static P Clone(P1& val)
{