Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11

pull/35/head
Jeffrey Walton 2015-07-30 11:25:24 -04:00
parent 8c63032865
commit 4d8ac2db7c
1 changed files with 2 additions and 0 deletions

View File

@ -524,7 +524,9 @@ void DigestFile(const char *filename)
filters[4].reset(new HashFilter(sha512)); filters[4].reset(new HashFilter(sha512));
filters[5].reset(new HashFilter(whirlpool)); filters[5].reset(new HashFilter(whirlpool));
using CryptoPP::auto_ptr;
auto_ptr<ChannelSwitch> channelSwitch(new ChannelSwitch); auto_ptr<ChannelSwitch> channelSwitch(new ChannelSwitch);
size_t i; size_t i;
for (i=0; i<filters.size(); i++) for (i=0; i<filters.size(); i++)
channelSwitch->AddDefaultRoute(*filters[i]); channelSwitch->AddDefaultRoute(*filters[i]);