Skip to content

Commit

Permalink
Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's lib…
Browse files Browse the repository at this point in the history
…c++ and C++11
  • Loading branch information
noloader committed Jul 30, 2015
1 parent 8c63032 commit 4d8ac2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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> channelSwitch(new ChannelSwitch);

size_t i;
for (i=0; i<filters.size(); i++)
channelSwitch->AddDefaultRoute(*filters[i]);
Expand Down

0 comments on commit 4d8ac2d

Please sign in to comment.