[Proto] Error in FoldToList Example of Tutorial

Dear all,
When I compile the FoldToList example defined here in Proto tutorial:
http://boost.org/doc/libs/1_45_0/doc/html/proto/users_guide.html#boost_proto...
I get some compiler error message in GCC 4.5.1 (MinGW32, WinXP, SP3), Boost 1.42.0. For your reference, I have included the error messages in the P.S. section of this posting. Anyone here knows what's going wrong?
TIA,--Hossein
P.S.
-------------- Build: Debug in Fold2List ---------------
Compiling: main.cpp
In file included from D:\Sources\Boost\boost_1_42_0/boost/fusion/view/ext_/segmented_iterator.hpp:23:0,
from D:\Sources\Boost\boost_1_42_0/boost/proto/fusion.hpp:28,
from D:\Sources\Boost\boost_1_42_0/boost/proto/core.hpp:21,
from D:\Sources\Boost\boost_1_42_0/boost/proto/proto.hpp:12,
from D:\My Documents\My Programmes\Tutorial\Proto\Fold2List\main.cpp:2:
D:\Sources\Boost\boost_1_42_0/boost/fusion/container/list/cons.hpp: In instantiation of 'boost::fusion::cons

... Just wanted to add that the same problem occurs when I try the piece of code in the documentation of Boost 1.42:
http://boost.org/doc/libs/1_42_0/doc/html/proto/users_guide.html#boost_proto...
--- On Fri, 24/12/10, Hossein Haeri

On 12/24/2010 12:13 PM, Hossein Haeri wrote:
Dear all,
When I compile the FoldToList example defined here in Proto tutorial:
http://boost.org/doc/libs/1_45_0/doc/html/proto/users_guide.html#boost_proto...
I get some compiler error message in GCC 4.5.1 (MinGW32, WinXP, SP3), Boost 1.42.0. For your reference, I have included the error messages in the P.S. section of this posting. Anyone here knows what's going wrong?
Hi Hossein, I can confirm the error you're seeing for gcc 4.5 and Boost 1.42. It works on trunk, however. I'm not sure about more recent Boost releases. -- Eric Niebler BoostPro Computing http://www.boostpro.com

Hi Eric,
Thank you for confirming the error. But, more than having it confirmed, I was looking for what's going wrong there. Especially, how do I demystify the error message? What is it saying basically?
Merry Christmas, BTW! :)
TIA,--Hossein
--- On Sat, 25/12/10, Eric Niebler
Dear all,
When I compile the FoldToList example defined here in Proto tutorial:
http://boost.org/doc/libs/1_45_0/doc/html/proto/users_guide.html#boost_proto...
I get some compiler error message in GCC 4.5.1 (MinGW32, WinXP, SP3), Boost 1.42.0. For your reference, I have included the error messages in the P.S. section of this posting. Anyone here knows what's going wrong?
Hi Hossein, I can confirm the error you're seeing for gcc 4.5 and Boost 1.42. It works on trunk, however. I'm not sure about more recent Boost releases. -- Eric Niebler BoostPro Computing http://www.boostpro.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 12/25/2010 6:39 AM, Hossein Haeri wrote:
Hi Eric,
Thank you for confirming the error. But, more than having it confirmed, I was looking for what's going wrong there. Especially, how do I demystify the error message? What is it saying basically?
Merry Christmas, BTW! :)
If you look at line 61 of cons.hpp, you see this:
template
participants (2)
-
Eric Niebler
-
Hossein Haeri