Opened 12 years ago
Last modified 12 years ago
#4697 new Feature Requests
[fusion]fold with join functor fails compile in category_of.hpp
Reported by: | Larry Evans | Owned by: | Joel de Guzman |
---|---|---|---|
Milestone: | To Be Determined | Component: | fusion |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
when the attached fold_join is compiled, it produces a compile error shown in the attached fold_join.compile.
However, when http://svn.boost.org/svn/boost/sandbox/SOC/2009/fusion/ in in the include path, it compiles and runs OK producing output:
v1=(tu<1>(100) tu<1>(b) tu<1>(300.1)) v2=(tu<2>(100) tu<2>(b) tu<2>(300.1)) v3=(tu<3>(100) tu<3>(b) tu<3>(300.1)) fold(vv,state0,join_ftor())=(tu<1>(100) tu<1>(b) tu<1>(300.1) tu<2>(100) tu<2>(b) tu<2>(300.1) tu<3>(100) tu<3>(b) tu<3>(300.1))
The non-variadic fusion should produce the same output since no variadic templates are being used.
Attachments (2)
Change History (5)
by , 12 years ago
Attachment: | fold_join.cpp added |
---|
by , 12 years ago
Attachment: | fold_join.compilation.nonvar_fusion added |
---|
compilation with nonvariadic funsion output
comment:1 by , 12 years ago
Component: | None → fusion |
---|---|
Owner: | set to |
comment:2 by , 12 years ago
Type: | Bugs → Feature Requests |
---|
comment:3 by , 12 years ago
Solved in trunk(1.45), according to:
http://article.gmane.org/gmane.comp.lib.boost.user/62735
which I've tested and found it to work.
Thanks Christopher.
source file