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)

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

Download all attachments as: .zip

Change History (5)

by cppljevans@…, 12 years ago

Attachment: fold_join.cpp added

source file

by cppljevans@…, 12 years ago

compilation with nonvariadic funsion output

comment:1 by cppljevans, 12 years ago

Component: Nonefusion
Owner: set to Joel de Guzman

comment:2 by Christopher Schmidt, 12 years ago

Type: BugsFeature Requests

comment:3 by cppljevans, 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.

Note: See TracTickets for help on using tickets.