Getting multi_index_container in 1.46.1 to work with VC++ 6.0

I've got a legacy MFC project that was built in VC++ 6.0. It needs to
stay compatible with VC6 runtime so that I can just drop it into Windows
NT4 where the original program was and have it just work. I've finally
gotten MFC and VC6 runtime to play nice in VS2003. Now I'm trying to work
in boost libraries so that I can use the ethernet and serial aspects of
ASIO. Of course, I downloaded and am working with the latest version of
boost (1.46.1), and I have it to the point where 311 errors are reported
at compile time, all having to do with multi_index_container. I've looked
through the compiler specifics pages of the 1.46.1 and 1.45.0 releases
with respect to the multi_index and have made the workaround changes that
I could (i.e. member->member_offset,
boost::multi_index::multi_index_container), but I am still getting syntax
errors related to the typedef of my multi_index_container.
If it will help, here is my definition:
struct ID{};
struct Name{};
typedef boost::multi_index::multi_index_container<
PDCUTestMessage,
boost::multi_index::indexed_by<
boost::multi_index::ordered_unique<
boost::multi_index::tag<ID>,
boost::multi_index::member_offset
PDCUMessageList;
The first error I'm getting is a syntax error calling out the comma on the line with member_offset PDCUTestMessage id. Then, since that doesn't compile, subsequent error messages snowball for every time I instantiate PDCUTestMessage and every time I add to the multi_index_container. Please help as soon as possible. I'm on a tight schedule, and this is the only major hurdle I see at this point. Thanks! Chris

El 05/05/2011, a las 21:58, "tangleman@secules.net"
I've got a legacy MFC project that was built in VC++ 6.0. It needs to stay compatible with VC6 runtime so that I can just drop it into Windows NT4 where the original program was and have it just work. I've finally gotten MFC and VC6 runtime to play nice in VS2003. Now I'm trying to work in boost libraries so that I can use the ethernet and serial aspects of ASIO.
Are you sure Asio works with VC 6.0? I'm not 100% sure, but I strongly doubt it.
Of course, I downloaded and am working with the latest version of boost (1.46.1), and I have it to the point where 311 errors are reported at compile time, all having to do with multi_index_container [...]
typedef boost::multi_index::multi_index_container< PDCUTestMessage, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag<ID>, boost::multi_index::member_offset
>,
Is there a blank between one > and the following? If not you have a syntax error. If this is not the problem can you provide the full error message? In any case, your best option is to stay with the latest Boost version known to work with this compiler (1.36.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at. http://www.tid.es/ES/PAGINAS/disclaimer.aspx
participants (2)
-
JOAQUIN M. LOPEZ MUÑOZ
-
tangleman@secules.net