From b6c73c87d41e97ffd8f9daa3652394d7cd30adb7 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 28 Sep 2012 23:35:40 -0700 Subject: [PATCH] auto_ptr semantics are a bit odd --- src/Amount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Amount.cpp b/src/Amount.cpp index c398e49f3f..28f3516cf3 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -884,7 +884,7 @@ STAmount STAmount::convertToInternalAmount(uint64 displayAmount, uint64 totalNow STAmount STAmount::deserialize(SerializerIterator& it) { - auto_ptr s = construct(it, sfGeneric); + std::auto_ptr s(dynamic_cast(construct(it, sfGeneric))); STAmount ret(*s); return ret; }