Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11
parent
8c63032865
commit
4d8ac2db7c
2
test.cpp
2
test.cpp
|
|
@ -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]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue