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:
parent
3af86d72a1
commit
db151ad7b9
1 changed files with 8 additions and 0 deletions
|
@ -728,6 +728,14 @@ namespace Loki
|
||||||
DestructiveCopy(const DestructiveCopy<P1>&)
|
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>
|
template <class P1>
|
||||||
static P Clone(P1& val)
|
static P Clone(P1& val)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue