Re: [Boost-users] [Boost.Multi-Index] ICE w/ VC7.1
Hello Joaquin and happy New Year, Sorry for my late reply but our mail server was down in the night of 31th; this is not a joke. I've just changed the code snippet with your recommendation but without success: I've got the same ICE with VC7.1. Just to clarify my report: I've also compiled some code snippets from the MultiIndex documentation and get the same ICE. My compiler version corresponds to the VC7.1 with the service pack #1. Best regards, Marc Viala
-----Message d'origine----- De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] De la part de "JOAQUIN LOPEZ MU?Z" Envoyé : dimanche 31 décembre 2006 01:08 À : boost-users@lists.boost.org Objet : Re: [Boost-users] [Boost.Multi-Index] ICE w/ VC7.1
Hello Marc,
----- Mensaje original ----- De: Marc Viala
Fecha: Viernes, Diciembre 29, 2006 7:25 pm Asunto: [Boost-users] [Boost.Multi-Index] ICE w/ VC7.1 Para: boost-users@lists.boost.org I'm just trying to use Boost.MultiIndex in a large project but I'm not being able to compile this library with VC 7.1.6030: I've got an ICE in file "apply_wrap.hpp" of Boost.MPL. I've tried to change the headers order but without success.
My environment is: - Windows XP - Boost 1.33.1 - VC 7.1.6030
To demonstrate this ICE, you will find hereafter a code snippet.
Thanks in advance.
Marc Viala [...] typedef composite_key< Item , ordered_non_unique
> , ordered_non_unique > ckey_ij ;
I think the problem lies here: you must provide composite_key<> with *key extractors*, not index specifiers. Please try rewriting ckey_ij like this:
typedef composite_key< Item , member
- , member
- > ckey_ij ;
Problem solved? I'm sorry I can't try the snippet you provide myself, so please report back. Thanks for using Boost.MultiIndex!
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
----- Mensaje original -----
De: Marc Viala
Hello Joaquin and happy New Year,
Sorry for my late reply but our mail server was down in the night of 31th; this is not a joke.
I've just changed the code snippet with your recommendation but without success: I've got the same ICE with VC7.1.
Just to clarify my report: I've also compiled some code snippets from the MultiIndex documentation and get the same ICE. My compiler version corresponds to the VC7.1 with the service pack #1.
Umm, this is weirder. Do you mean you have tried to compile some of the programs under boost/libs/multi_index/example? Could you please try to compile some of the .cpps on the test folder, for instance boost/libs/multi_index/test/test_basic.cpp? Same ICE? B.MI has always worked satisfactorily with MSVC 7.1, so I'm wondering if it's the SP#1 that's making the difference. Current regression tests for the upcoming v1.34 of Boost are not showing any problem with B.MI and MSVC 7.1, but I don't know whether they have SP#1 or not. Do you know if installing the service pack makes the predefined macro _MSC_FULL_VER to bump? This macro is 13106030 in the regression testing environment, see http://tinyurl.com/y84ngx . Also, do you have access to a compiler installation not having the SP that you can try your snippet on? Sorry to bring more questions than answers here. I you can come up with some info about the issues I mention above I think we'll be able to isolate the problem.
Best regards,
Marc Viala
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
"JOAQUIN LOPEZ MU?Z" wrote:
Sorry to bring more questions than answers here. I you can come up with some info about the issues I mention above I think we'll be able to isolate the problem.
Current release branch passes all tests with VC7.1sp1 here. I'll try and double check 1.33.1 later if that would help. John.
----- Mensaje original -----
De: John Maddock
"JOAQUIN LOPEZ MU?Z" wrote:
Sorry to bring more questions than answers here. I you can come up with some info about the issues I mention above I think we'll be able to isolate the problem.
Current release branch passes all tests with VC7.1sp1 here. I'll try and double check 1.33.1 later if that would help.
John.
Thank you, John! That'd definitely help a lot. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
----- Mensaje original -----
De: "JOAQUIN LOPEZ MU?Z"
----- Mensaje original ----- De: John Maddock
Fecha: Martes, Enero 2, 2007 3:17 pm Asunto: Re: [Boost-users] [Boost.Multi-Index] ICE w/ VC7.1 Para: boost-users@lists.boost.org "JOAQUIN LOPEZ MU?Z" wrote:
Sorry to bring more questions than answers here. I you can come up with some info about the issues I mention above I think we'll be able to isolate the problem.
Current release branch passes all tests with VC7.1sp1 here. I'll try and double check 1.33.1 later if that would help.
John.
Thank you, John! That'd definitely help a lot.
Oh, and while you're at it, it'd be interesting to also try the offending snippet that Marc originally provided: http://lists.boost.org/boost-users/2006/12/24313.php with the corrections I suggested at http://lists.boost.org/boost-users/2006/12/24320.php Thanks again, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
"JOAQUIN LOPEZ MU?Z" wrote:
Thank you, John! That'd definitely help a lot.
Oh, and while you're at it, it'd be interesting to also try the offending snippet that Marc originally provided:
http://lists.boost.org/boost-users/2006/12/24313.php
with the corrections I suggested at
All the tests pass.
The code that was posted doesn't compile for me, I see:
Compiling...
scrap.cpp
c:\data\boost\1.33.1\boost_1_33_1\boost\multi_index\composite_key.hpp(154) :
error C2039: 'result_type' : is not a member of
'boost::multi_index::ordered_non_unique<Arg1>'
with
[
Arg1=boost::multi_index::member
----- Mensaje original -----
De: John Maddock
"JOAQUIN LOPEZ MU?Z" wrote:
Thank you, John! That'd definitely help a lot.
Oh, and while you're at it, it'd be interesting to also try the offending snippet that Marc originally provided:
http://lists.boost.org/boost-users/2006/12/24313.php
with the corrections I suggested at
All the tests pass.
The code that was posted doesn't compile for me, I see:
Compiling... scrap.cpp [...]
Looks like you forgot to incorporate the corrections to the snippet that I describe in http://lists.boost.org/boost-users/2006/12/24320.php But giving the results of the rest of your tests, I don't think it's necessary to pursue this particular issue any more.
So I gave up at that point. Adding your example programs to the same VC7.1 IDE project did compile so I don't think it's a setup issue.
That's fine, your help has been invaluable. It definitely looks like a local problem, I hope Marc can provide me with more info wrt his particular environment. Thank you very much, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (3)
-
"JOAQUIN LOPEZ MU?Z"
-
John Maddock
-
Marc Viala