Answer the question
In order to leave comments, you need to log in
How to make std::list 12 bytes?
I'm working on a reverse library written in VS2003 .NET. One of the structures from there has a std::list, which has a certain offset and a size of 12 bytes, followed by other properties. I'm writing in VS2010 and I have sizeof(std::list) 16 bytes. This structure must be transferred to the library and processed there somehow. If I pass in a structure with a list size of 16 bytes, of course the property values that follow the list are shifted by 4 bytes. Question: how do I use, or where can I get a std::list of 12 bytes?
Answer the question
In order to leave comments, you need to log in
std::list
my_list.h
std::list&
reinterpret_cast<std::list&>(my_list_instance)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question