reinterpret_cast<byte*> truncating to 8

Devharsh Trivedi <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
I am trying to convert a std::string to cryptopp::byte like this
const byte* pt = reinterpret_cast<const byte*>(&alert[0]);

but it doesn't copy the full string, as confirmed by sizeof
sizeof(alert) = 24
sizeof(pt) = 8

why is it truncating to first 8 bytes?

-- 
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/84a85390-f299-4b30-9b6a-e914059143c2n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.