Opened 8 years ago

Last modified 8 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)

fold_join.cpp (2.8 KB) - added by cppljevans@… 8 years ago.
source file
fold_join.compilation.nonvar_fusion (147.5 KB) - added by cppljevans@… 8 years ago.
compilation with nonvariadic funsion output

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by cppljevans@…

Attachment: fold_join.cpp added

source file

Changed 8 years ago by cppljevans@…

compilation with nonvariadic funsion output

comment:1 Changed 8 years ago by cppljevans

Component: Nonefusion
Owner: set to Joel de Guzman

comment:2 Changed 8 years ago by Christopher Schmidt

Type: BugsFeature Requests

comment:3 Changed 8 years ago by cppljevans

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.

Note: See TracTickets for help on using tickets.