basic_stringとSTLコンテナーでカスタムSecureAllocatorを使用しようとしていますが、運がほとんどありません。
typedef std::basic_string< char, std::char_traits< char >, SecureAllocator< char > > SecureString;
SecureString value = "hello, world!";
vector< SecureString > collection;
collection.push_back( value );
In file included from /Users/bcrowhurst/source/utility/string_impl.cpp:31:
In file included from /Users/bcrowhurst/build/../source/utility/string_impl.h:31:
/usr/bin/../lib/c++/v1/string:2162:19: error: invalid operands to binary expression ('allocator_type' (aka 'SecureAllocator<char>') and 'allocator_type')
if (__alloc() != __str.__alloc())
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
環境
Mac OSX Lion
Apple clangバージョン3.1(tags / Apple / clang-318.0.61)(LLVM 3.1svnに基づく)
ターゲット:x86_64-apple-darwin11.4.0
スレッドモデル:posix