Skip to content

Commit

Permalink
Cleared "name defined in alias declaration must be an identifier" err…
Browse files Browse the repository at this point in the history
…or under LLVM's libc++ and C++11
  • Loading branch information
noloader committed Jul 30, 2015
1 parent 6029112 commit 8c63032
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions smartptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ NAMESPACE_BEGIN(CryptoPP)
// test for unique_ptr directly because some of the non-Apple Clangs on OS X fail the same
// way. However, modern standard libraries have <forward_list>, so we test for it instead.
// Thanks to Jonathan Wakely for devising the clever test for modern/ancient versions.

#if (__cplusplus >= 201103L) || (_MSC_VER >= 1600)
# if defined(__clang__)
# if (__has_include(<forward_list>))
Expand All @@ -25,7 +24,7 @@ NAMESPACE_BEGIN(CryptoPP)
// The result of below is a CryptoPP::auto_ptr in both cases
#ifdef CRYPTOPP_HAVE_UNIQUE_PTR
template<typename T>
using std::auto_ptr = std::unique_ptr<T>;
using auto_ptr = std::unique_ptr<T>;
#else
using std::auto_ptr;
#endif
Expand Down

0 comments on commit 8c63032

Please sign in to comment.