From 4d8ac2db7c0d486a68f5b36658add615fb51e196 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 30 Jul 2015 11:25:24 -0400 Subject: [PATCH] Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11 --- test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.cpp b/test.cpp index 186ee853..0ccd1ab4 100644 --- a/test.cpp +++ b/test.cpp @@ -524,7 +524,9 @@ void DigestFile(const char *filename) filters[4].reset(new HashFilter(sha512)); filters[5].reset(new HashFilter(whirlpool)); + using CryptoPP::auto_ptr; auto_ptr channelSwitch(new ChannelSwitch); + size_t i; for (i=0; iAddDefaultRoute(*filters[i]);